Disabling the Customizr’s breadcrumb on some pages

Note :This snippet works only with the Classical style option. The Classical style option can be enabled in Appearance > Customize > Advanced > Theme Style. More about the theme style option here


You might need to disable the built-in Customizr breadcrumb in some contexts of your website.

You can easily unhook the breadcrumb actions by checking the post types, or using the WordPress built-in conditional tags.


Use case : disabling the breadcrumb on the WooCommerce product pages

All product pages


Product list pages



Product single page


Where to paste this code? => in your functions.php file. I strongly recommend to create a child theme. Download a start-up child theme here.

Everything you need to know about child theme with Customizr here.

Read How to customize the Customizr WordPress theme? if have never used a functions.php file in a child theme.


Related Snippets you may also like

We can help you to implement this snippet

Coding is our job and we know WordPress inside and out. We can help you to customize your website with small chunks of code snippets like this one.

Send us your request and we'll get back to you quickly.

5 thoughts on “Disabling the Customizr’s breadcrumb on some pages

  • Menaka S

    For the latest version, use the above code with a small change: Change all instances of TC_breadcrumb to CZR_breadcrumb

  • Filipe

    Hi! I have added the code to disable breadcrumb on WooCommerce all pages, but in the latest Customizr update, woocommerce pages won’t load so i had to disable it. Can someone help?

    • Nicolas Post author

      Hi, you can use the is_page() conditional tag and get_the_id() to test the page id or even get_page_by_title().
      Hope this helps

      • Mathias Madsen

        In case anyone is looking for a solution that works for a template-specific page:

        // Hide breadcrumbs on main pages
        add_action (‘wp_head’ , ‘tc_disable_breadcrumb’);
        function tc_disable_breadcrumb() {
        if ( ! is_page_template( ‘custom-page.php’ ) ) //change template
        remove_action( ‘__before_main_container’ , array( TC_breadcrumb::$instance , ‘tc_breadcrumb_display’ ), 20 );

Comments are closed.