Reply To: Adding Breadcrumbs to Theme


If poss can you make it appear at the top of the pages rather then in-between the menu and the pages? Would make it look a lot neater. Although thinking about you have to add to every template wouldn’t you?

Now I’m a little reluctant to add it 🙂 I’m thinking most people would want to place it differently.

I think there may be a better solution for you if you don’t want to use a child theme. You could install this php widget plugin. A new widget called “PHP Code” will be available. It’s just similar to a normal text widget. You can place that anywhere you like then add this code:

<?php if ( function_exists('yoast_breadcrumb') ) {
   yoast_breadcrumb('<p id="breadcrumbs">','</p>'); }

You could place it on the “Before Content” sidebar which is on top of the post. Or you could place it on the “Post – Header” sidebar which is inside the post on top of the title.