Disable auto gallery on archive pages

Home Forums Easy FancyBox Pro Disable auto gallery on archive pages

This topic contains 2 replies, has 2 voices, and was last updated by  craig 2 years, 12 months ago.

  • Author
    Posts
  • #3380

    craig
    Participant

    Hello,

    My theme is set to show the full post content on the archive pages, including the image(s) in the posts. What happens is, a gallery is created with all the images shown on the archive page. I want the lightbox to work with these images, but without a gallery being created. I have the Pro version of the plugin and I’ve tried a few of the options that would seem to control that. But no luck. Before I try a programmatic fix, is there a setting I am missing in the options page?

  • #3382

    RavanH
    Keymaster

    Hi Craig,

    To disable the automatic gallery feature, go to Settings > Media and find the Autogallery option. Set it to Disabled.

    But if you want to keep the gallery feature on a per-post basis, meaning that images within the same post are grouped together but not include images from other posts on the same archive page, then you need to choose the option Galleries per Section. After that, you need to define the sections below, so they match your themes template. By default, the plugin uses “article” and “div.hentry” because that are the most commonly used identifiers in modern WordPress themes but your theme might use completely different identifiers.

    If you can provide a link to your archive page, I can tell you more 🙂

  • #3381

    craig
    Participant

    Hi Ravan,

    Thank you for responding. Changing from “div.hentry” to “article” made the magic happen! I appreciate your great support for this plugin.

You must be logged in to reply to this topic.