Support » Plugin: Easy FancyBox » Not working when tag includes srcset

  • Resolved frihet87


    We can’t get the plugin to work on our site that uses wordpress’s core srcset functionality… ( older sites that don’t create srcset sizes work fine).

    So the image html is:

    But no matter the priority we set, the wrapper anchor for fancylight box is not included.

    Is there a configuration setting necessary to have easy fancy light box run after the wordpress core has passed through all the images to add the srcset markup?


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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter frihet87


    here is the img tag for the above
    <img class="size-medium wp-image-803" src="" alt="" width="300" height="221" srcset=" 300w, 768w, 878w" sizes="(max-width: 300px) 100vw, 300px">

    Hi, the srcset attribute should not interfere with Easy FancyBox. It must be something else… I’ll have a closer look at your site.

    I don’t see any FancyBox script files included on your site. Is the plugin activated at all?

    BTW, the theme already includes Magnific Popup so you might want to try and use that light box instead. Including multiple light box scripts is asking for conflicts and makes site load times slower than they need to be.

    Also note that you need to choose “Link to: Media file” when inserting the images. Without that, there is no media link for the light box to work with.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Not working when tag includes srcset’ is closed to new replies.