• I need to know how to remove breadcrumbs from my entire site. I thought I did this before, but last night when I was trying to add a custom menu, I made a few changes (only to the menu) and now I’m seeing breadcrumbs. I didn’t mess with the php files at all. In fact, I’ve searched the main index, the pages, and the singles php files and “breadcrumbs” isn’t showing up. Plus I don’t have any plugins for breadcrumbs. Not sure what the deal is, but I’d like it gone. I’m using Canvas theme. Thanks so much!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter MeaganV

    (@meaganv)

    Okay… I fixed it. I’m not sure what happened, but for anyone else who deals with this… this is what I did.

    Like I said above… I searched through the typical php files that contain the word “breadcrumbs” and I didn’t find any. So I inspected the element on my website and it was showing the breadcrumbs there but it’s written in html. What I noticed is that it was right under “#main” and before “#content starts”. So I went into the index.php file and found some code that looked like this: <?php woo_loop_before(); ?> and all I did was change it to this: <?php// woo_loop_before(); ?> and it disabled it.

    I guess there’s something about the loop part… I don’t know. I don’t really know much about php or coding. Anyway, I went through to archives.php, single.php, search.php, and pages.php and added the “//” to the code in all those areas and it all worked.

    Hopefully I didn’t mess anything else up in the process. It all looks normal to me though.

    Good luck if you’re having this problem!

    Actually you shouldn’t modify any files of core framework. I suggest you to go with child theme, create new function.php and add the hook. To remove breadcrumb, go with following:

    // Removing Breadcrumbs
    function remove_breadcrumb() {
    remove_action(‘woo_loop_before’,’woo_breadcrumbs’);
    }
    add_action(‘init’, ‘remove_breadcrumb’);

    Thanks for the above post @wp-designer. I was trying to remember how to do this.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How do I remove breadcrumbs from my Canvas theme?’ is closed to new replies.