Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi, yes this can be done with the classes fancybox and nofancybox.

    Notes:

    1. You may want to disable all Autodetection on Settings > Media.
    2. The class fancybox can be set on a media link or the wrapping element of such a link but it will not work when set on elements that are “higher up”. For example, a media link inside a Paragraph with class fancybox will get detected, like <p><a href="..." class="fancybox"><img... or <pclass="fancybox"><a href="..."><img..., but not a media link inside a paragraph inside a column inside a columns block with class fancybox…
    3. The class nofancybox only works when set directly on the media link. So <p><a href="..." class="nofancybox"><img... will exclude that link from the light box, but <p class="nofancybox"><a href="..." class="nofancybox"><img... will not have any effect.

    Hope that helps ??

    Thread Starter webmark487

    (@webmark487)

    Thank you for the detailed instructions!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Easy fancy box should be functionable only for specific elements (with css class’ is closed to new replies.