• Resolved richwagner

    (@richwagner)


    Hello! When you click on a thumbnail, a gallery opens instead of a related post. Please tell me how to fix this.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author keesiemeijer

    (@keesiemeijer)

    Hi richwagner

    The plugin gallery is the same as a WordPress gallery. Your theme or another plugin is opening the gallery (images) with Javascript. Try changing the gallery css class with this in your (child) theme’s functions.php file.

    
    add_filter( 'related_posts_by_taxonomy_gallery', 'rpbt_remove_gallery_class' );
    
    function rpbt_remove_gallery_class( $args ) {
    	$args['gallery_class'] = '';
    
    	return $args;
    }
    

    Check if it works with that. You might lose some styling of the gallery. We will fix that later.

    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.

    Thread Starter richwagner

    (@richwagner)

    Thank you very much!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Gallery opens instead of post’ is closed to new replies.