Streaming live at 10am (PST)

Dynamic Lightbox for Blog Images


#1

Hi Everyone! I am trying so desperately to figure out how to make these lightbox images in this blog dynamic. I've been using the following post by oramsdesign to try and figure it out (https://forum.webflow.com/t/full-cms-lightbox/33669), but I'm so new to the CMS I think I may be missing something. Any help on the matter would be greatly appreciated!

Designer:
https://preview.webflow.com/preview/sirwinphotography-copy?preview=3e5c99fc31d8527781c0b1c5a1812904

Live:
http://sirwinphotography-copy.webflow.io/post/10-web-design-blogs-you-cant-miss


#2

Console error:

Try removing the ; from your embed:

Republish and test.


#3

Hello @Spencer_Irwin

The reason that the lightbox is not working is that WF no longer publish the javascript code that you don't have on your site. So try to add a normal lightbox element to your project and then hide it, with that you're telling WF to include the lightbox javascript code into your project and it'll work.

Let me know if I explained my self and if it helps.

Cheers,


#4

@Spencer_Irwin
Good point, that too. :slight_smile:


#5

Thanks for the help guys! Haven't had a chance to remove that part of he custom code, you suggested @Phoxic, but I think I have a page on the site with a "faux" lightbox to enable the necessary JavaScript @aaronocampo.