• Resolved lovetowork1947

    (@lovetowork1947)


    When the single page product displays it has three Related Similar posts and also Related products. How do I get rid of the Related Similar posts that display?

    Jeanne

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • This isn’t from WooCommerce I guess. This is probably from your theme. If not, then it might be an interfering plugin which is changing the product page template.

    In your theme, check the widgets by going go appearance -> widgets or go over the theme settings.

    The simplest way to detect if it section is from theme is temporary theme switching.

    Thread Starter lovetowork1947

    (@lovetowork1947)

    Fixed.. Thank You. I did a search and found this and it worked.

    You can remove the Related Posts from your posts by adding the following code to your theme’s functions.php, or to a functionality plugin.

    function jetpackme_remove_rp() {
    if ( class_exists( ‘Jetpack_RelatedPosts’ ) ) {
    $jprp = Jetpack_RelatedPosts::init();
    $callback = array( $jprp, ‘filter_add_target_to_dom’ );
    remove_filter( ‘the_content’, $callback, 40 );
    }
    }
    add_filter( ‘wp’, ‘jetpackme_remove_rp’, 20 );

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove ‘Related Similar post’ from single Product page’ is closed to new replies.