I am building a new site and need help with some coding

6 replies · opened Aug 27, 2023

LlensmithAug 27, 2023

what I would like to do is make this image shown in the file I have sentin jpg in to a lightbox image so when clicked I get a large version (no text needed on large pop up image.)
This is the code I am using at presnt which I can use as a template for future parts of the page.
I just can't figure out how to change the image code to get what I need. I hope I am making sense

<div class="col-lg-12">
<div class="row team team-list rounded-5 g-0 align-items-center shadow-sm border h-shadow h-translatey-sm all-ts rounded-4 overflow-hidden">
<div class="col-md-4 team-image ">

attachment

						    &lt;/div&gt;
						    &lt;div class="col-md-8 col-sm-7 p-4"&gt;
								&lt;div class="team-desc text-start"&gt;
									&lt;div class="team-title pt-0 mb-3"&gt;&lt;h4&gt;Druridge Bay &lt;/h4&gt;&lt;span class="fst-normal"&gt;South section&lt;/span&gt;&lt;/div&gt;
									&lt;p class="mb-3"&gt;Druridge Bay beach stretches some 7 miles in length and officially runs from Amble through
									 to Cresswell. Locals tend to refer to the beach in four sections. 
                                   Amble beach running from just South of Amble opposite Amble links holiday park to High Hauxley. High Hauxley
                                   beach, which runs from High Hauxley
                                   to the rocks just South of Hauxley nature reserve and Druridge Bay, which is probably the longest stretch 
                                   and runs down to Creswell. And Creswell beach which is reached by driving through Widdrington village.
									&lt;br&gt;Druridge Bay is probably the most popular in the area and kite 
									surfers and paddle boarders can often be seen there as well 
									as horse riders who use it for exercising their horses. 
									Parking is not really a problem even at busy times as 
									there are 2 designated car parks and plenty of parking
									 in Druridge Bay Country Park itself. There is also 
									 some parking along the verges.&lt;/p&gt;
									 &lt;br&gt;	&lt;!-- Large modal --&gt;
						&lt;button class="btn btn-primary me-2" data-bs-toggle="modal" data-bs-target=".bs-example-modal-lg"&gt;See map&lt;/button&gt;
SSemicolon WebSTAFFAug 28, 2023

Hello,

Please provide us with a Live URL with a more detailed explanation of the Image you would like to enlarge to a Lightbox so that we can check out the exact issue and provide you with more accurate assistance on this. Thanks for your Patience.

Additionally, you can consider checking the Lightbox Documentation: https://docs.semicolonweb.com/docs/shortcodes/lightbox/#docs-section-single-image . For just images, you can use this code:
[ch_pre]
attachment
[/ch_pre]

Meanwhile, do let us know if we can help you with anything else or if you find any further issues with Canvas.

PS. Only One License per Website can be used else this will be against License Violation and Abuse, and will result in wrongful illegal usage under the Licensing Terms. We request you to comply and Thanks for Understanding.

LlensmithAug 28, 2023

Thanks for your quick reply.
The problem is the website I am working on is not ready to go live so isn't online yet.
The code you showed above works fine but it doesn't give controls for people to close the window.
I have attached the part of the web page I am having problems with I just need to know what code I should put in and where to make the image lightbox effect. Although I have some knowledge of web design it is limited. O by the way just love Canvas.
Regards
Len Smith

LlensmithAug 29, 2023

It's Ok I have worked it out myself, Thanks
Len Smith

SSemicolon WebSTAFFAug 30, 2023

Hello,

Apologies for the Delays in replying to your Support Query!

You can consider using this code:
[ch_pre]
attachment
[/ch_pre]

This will definitely work fine. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

LlensmithAug 30, 2023

Thanks I did manage to sort it myself thanks

SSemicolon WebSTAFFAug 30, 2023

Glad the issue was resolved.

Please do let us know if we can help you with anything else or if you find any further issues with Canvas.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard