• Resolved skyavenuepd

    (@skyavenuepd)


    Hello,

    When I add an element in Divi and use the class “fancybox-iframe” or “fancybox-vimeo” the plugin works fine for that element (Divi module).

    However, the elements in adjacent and following columns or rows inherit the fancybox class and also become active when clicked (and show the light box when they are not supposed to). How do I prevent the other elements on the same page from inheriting the fancybox classes?

    Thanks for your help, I’m getting nowhere, despite trying many things.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi, checking the source code of that page I see a Divi “Code” block that stats with tis content:

    
    <a class="fancybox-vimeo" href="https://vimeo.com/644167187"><img src="...
    

    but that A tag (link) is never closed with </a> hence the class basically applies to everything that follows…

    Thread Starter skyavenuepd

    (@skyavenuepd)

    Thank you Rolf!!

    I don’t know how I missed that, but it is all resolved with the close tag updated.

    Thanks once again for your help and for an excellent plugin!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fancybox class being inherited from other elements’ is closed to new replies.