• Most related post plugins link the thumbnail to the post. I like this plugin in general and how many options it provides, but its default thumbnail behavior is strange and I don’t see a way to change it. Is there an option or filter that I can use to make it a normal link instead?

Viewing 1 replies (of 1 total)
  • Plugin Author keesiemeijer

    (@keesiemeijer)

    Hi pikamander2

    Your theme or a plugin is using the gallery CSS selectors of the gallery to open them in a lightbox. You can change the class names with a filter, but it could mean you lose some styling for the gallery.

    Try adding this to your theme’s functions.php file

    
    add_filter( 'related_posts_by_taxonomy_gallery_item_class', 'rpbt_gallery_item_class' );
    
    function rpbt_gallery_item_class($class) {
        return 'rpbt-gallery-item';
    }
    

    btw:
    consider creating a child theme instead of editing your theme directly – if you upgrade the theme all your modifications will be lost. Or create a plugin with the code above.

    • This reply was modified 6 years, 3 months ago by keesiemeijer. Reason: use correct code
Viewing 1 replies (of 1 total)
  • The topic ‘How can I make thumbnails link to the post instead of opening a lightbox?’ is closed to new replies.