Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #24555

    Hi,

    I use the Propulsion theme and I’ve never see the breadcrumbs in action….I neither know where/how to set that up. For a while – somewhere before the last update- I could see some breadcrumb-ish action on my portfolio item pages, but even that is gone for unknown reasons.

    Now I’m using Yoast’s SEO plugin and I read on his page that I’ll have to add the following to my theme – not stating how-

    Add the following code to your theme’s template(s):

    1 <?php if ( function_exists(‘yoast_breadcrumb’) ) {

    2 yoast_breadcrumb(‘<p id=”breadcrumbs”>’,’</p>’);

    3 } ?>

    Any help on how to specifically implement the above in order to have the breadcrumbs working well on my pages is very much welcome.

    Thanks in ad

    #123820

    Hey!

    Personally I’d add it to page.php and single.php below following line/code:

    <div class='container'>

    Best regards,

    Peter

    #123821

    Thanks Peter…I did just that, no breadcrumbs to see. Has Propulsion got her own bread crumb feature by the way? I guess it could be helpful for my visitors and for seo…

    #123822

    While awaiting your response, a minor question: could the placement of the above mentioned code in my page.php and single.php be responsible for the vanishing of my schema.org markup of my products(pages) in google webmaster tools?

    I observed the vanishing today after having added the code yesterday.

    #123823

    Yes maybe – I’m not sure which schema.org standard is used by Yoasts breadcrumb though.

    You can also try to insert the breadcrumb code into header.php – in this case insert the code at the very bottom of the file. Propulsion does officially not support a breadcrumb – nevertheless the framework includes a breadcrumb function. You can call it with

    <?php echo avia_breadcrumbs(array('separator' => '/')); ?>

    but it’s probably not perfect especially because we didn’t optimize it for shop pages or portfolio pages. Afaik only the latest theme “Enfold” comes with a rich snippet breadcrumb, etc.

    #123824

    Thanks,

    Which code should I add to my header.php:

    This one: <?php if ( function_exists(‘yoast_breadcrumb’) ) {

    yoast_breadcrumb(‘<p id=”breadcrumbs”>’,’</p>’);

    } ?>

    or

    <?php echo avia_breadcrumbs(array(‘separator’ => ‘/’)); ?>

    #123825

    You can try both. avia_breadcrumbs() is the breadcrumb function which is part of the theme framework and it’s used in some of our themes. Propulsion does not support this breadcrumb officially though. yoast_breadcrumb is the breadcrumb function which is included in the Yoast SEO plugin. I guess both functions will give you different results and it depends on your personal preference.

    #123826

    What a speedy answer…..thank you.

    So the final bit please: I add the follow codes (1 beneath the other) at the ultimate bottom of my header.php file (really the last end of the file)?

    <?php echo avia_breadcrumbs(array(‘separator’ => ‘/’)); ?>

    <?php if ( function_exists(‘yoast_breadcrumb’) ) {

    yoast_breadcrumb(‘<p id=”breadcrumbs”>’,’</p>’);

    } ?>

    #123827

    ….and is that a better option than placing the code for yoast breadcrumb in single.php and page.php…..which seemed to have an effect on my star rating snippets.

    #123828

    1) Please don’t use both code snippets. You need to decide which one you want to use – otherwise you’ll display two breadcrumbs which will irritate your website visitors. However you can easily switch between the breadcrumbs by replacing

    <?php echo avia_breadcrumbs(array('separator' => '/')); ?>

    with

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

    (or vice versa)…

    2) Yes, you can also add it to header.php. From a technical point of view it’s probably even better because you just need to modify one file. However I’m not sure if the breadcrumb will fit into the page layout if you use it outside the content container. Try if it works, if not try to wrap it into a div like

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

    #123829

    …..and place the last code where ‘exactly’….please (e.g.: at the very bottom of header.php/ under the sentence xxxxx in header.php).

    Thanks a lot Dude

    #123830

    Hi,

    Maybe, you can position it right below the header menu. On header.php, find this code

    </div><!-- end container-->

    </div><!-- end container_wrap-->

    Below, snap the yoast breadcrumb code. Give it a unique selector like yoast-container.

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

    Regards,

    Ismael

    #123831

    Hello,

    I would also like to implement breadcrumbs using the same code above, however I would only like the breadcrumbs to display on shop related pages. How would I do this?

    Thank you in advance.

Viewing 13 posts - 1 through 13 (of 13 total)

The topic ‘how to add yoast seo bread crumb’ is closed to new replies.