Disable WooCommerce Breadcrumbs

If you care about website performance and easier administration, I recommend using a code snippet plugin like WPCodeBox (or similar) for adding code to your website.

Instructions

  1. Create a new PHP code snippet.
  2. Copy the contents of code snippet below.
  3. Paste the contents into your code snippet.
  4. Review any notes that I’ve provided.
  5. Save and enable the code snippet.
  6. Test.

Snippet

If these appear on your site (e.g., Single Product Page), and you want them to go away, this code snippet will do that.

add_action("init", "my_remove_breadcrumbs");

function my_remove_breadcrumbs()
{
    remove_action(
        "woocommerce_before_main_content",
        "woocommerce_breadcrumb",
        20,
        0
    );
}

🔥NEW!🔥
Property Starter Site
MyListing Add-on
Launch Sale Ends: June 24th.

Club Guarantee

If you notice an issue with this product, I’ll fix it for free and get you an updated version.

Club Guarantee

If you notice an issue with a Club Product and the problem exists on the corresponding Starter Site, I’ll fix it for free.