Scroll to top

How to Remove WooCommerce Breadcrumbs in WordPress?


Notice: Undefined variable: string in /home/u665484253/domains/wpcodekit.com/public_html/wp-content/themes/twentytwenty-child/functions.php on line 61
Remove WooCommerce Breadcrumbs in WordPress
add_action('template_redirect', 'remove_shop_breadcrumbs' );
function remove_shop_breadcrumbs(){

    if (is_shop())
        remove_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20, 0);

}
OR
if(is_shop()){ ... } // shop page

if(is_front_page() ){ ... } // static front page

if(is_home()){ ... } // default page

   OR

remove_action('woocommerce_before_main_content', 'woocommerce_breadcrumb', 20, 0);

WooCommerce adds breadcrumbs to each and every product page whether you like it or not.

Some people like these breadcrumbs, while some don’t.

I never liked them. So I wanted to remove WooCommerce breadcrumbs from day one.

But there was a problem…

The Problem With Removing WooCommerce Breadcrumbs

To do any sort of customization in WooCommerce, including removing the breadcrumbs, you have to write code.

I am not a developer!

I cannot write code!

So I had to depend on others to write code for me.

But this was even more problematic!

Things change rapidly in the online world. So there is no guarantee that a piece of code written today will work tomorrow.

This meant that I was going to be dependent on someone else for a very long time.

And I hated that.

This is why I started to search for ways to remove the WooCommerce breadcrumbs without writing any code.

And if you are reading this tutorial, then I am sure you understand what I am saying.

There has to be a “way” for us to enable or disable things in WooCommerce without having to write a bunch of code.

The only problem is “finding that way”.

Well…

I found two “ways” to remove WooCommerce breadcrumbs and here they are…

  1. Remove WooCommerce Breadcrumbs By Using a Plugin
  2. Remove WooCommerce Breadcrumbs By Using a Theme

Both these methods work well, so pick the one that works best for you.

Let me show you now how both these methods work…

But before I do that, let me tell you that if you still prefer to use code, then here’s a code snippet to remove WooCommerce breadcrumbs.

Okay!

With that out of the way, let’s move on with this tutorial…

How to Remove WooCommerce Breadcrumbs in WordPress- Remove WooCommerce Breadcrumbs – WooCommerce Breadcrumbs || Breadcrumbs

Read More Posts

Leave a Reply

Your email address will not be published.