• Resolved janburg

    (@janburg)


    I’m trying to remove the breadcrumb from the Shop and product pages. I have checked the box in the Genesis theme customizer to not show breadcrumbs. I have added variations of the php code to remove the breadcrumbs, such as https://docs.woocommerce.com/document/customise-the-woocommerce-breadcrumb/ shows. I have this in my functions.php now, but the breadcrumbs are still taunting me. Help please!

    // Remove breadcrumbs from shop & categories
    add_filter( 'woocommerce_before_main_content', 'remove_breadcrumbs');
    function remove_breadcrumbs() {
    	if(!is_product()) {
    		remove_action( 'woocommerce_before_main_content','woocommerce_breadcrumb', 20, 0);
    	}
    }
    

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • I see you removed breadcrumbs ??

    Just wanted to let you know you have this code-comment printed on the bottom of your pages:
    https://prntscr.com/hyq9zm

    Thread Starter janburg

    (@janburg)

    Yes, I found a 3rd (or was it 4th) location that I could click to hide the breadcrumbs. I had thought that the functions.php would override the plugin options?

    And yes, I know about that code – it’s yet another issue on this test site. Wonderful week for head banging against the desk.

    using CSS code to hide the breadcrumbs, then use this:

    .woocommerce-breadcrumb {
    visibility:hidden;
    }

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘removing breadcrumb from Woocommerce’ is closed to new replies.