This topic has 2 replies, 2 voices, and was last updated 9 years by valemi76.

  • Author
  • #91834
     valemi76
    Participant

    Hi,

    I am using Yoast SEO, can I abilitate breadcrumbs ?

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

    as asked in  header.php?
    http://kb.yoast.com/article/245-implement-wordpress-seo-breadcrumbs

    Since yoast says that some themes should not recommend it, I wanted to ask before if I have to do it in Kleo, and where,

    thanks

    #91901
     Radu
    Moderator

    Hi,

    You can use breadcrumbs from yoast in kleo by copying this file : /wp-content/themes/kleo/page-parts/general-header-section.php
    to : wp-content/themes/kleo-child/page-parts/

    Then open general-header-section.php from wp-content/themes/kleo-child/page-parts/ and before last div paste the code from above. ( see screenshot )

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

    Cheers

    RAdu

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    Attachments:
    You must be logged in to view attached files.
    #92092
     valemi76
    Participant

    Hi,

    I will try,

    thanks

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

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?