Where to add Yoast breadcrumbs code? - by scuba

This topic has 2 replies, 2 voices, and was last updated 10 years, 2 months ago ago by Eva Kemp

  • Avatar: scuba
    scuba
    Participant
    September 9, 2014 at 14:02

    Hi,

    I want to add the Yoast SEO breadcrumbs to my website (see private content): https://yoast.com/wordpress/plugins/breadcrumbs/

    In which template (and where exactly) do I have to place the code below?

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

    They have to appear on pages (not the homepage) and posts.

    Kind regards,

    Nick

    Please, contact administrator
    for this information.
    1 Answer
    Avatar: Eva
    Eva Kemp
    Support staff
    September 9, 2014 at 14:48

    Hello,

    You need add this code into page.php file in wp-content/themes/xmarket/ directory. Find the line 18, the code <h1><?php echo $title; ?></h1> and after this code add the one from Yoast plugin. If you have any issues please provide us with wp-admin panel and FTP credentials.

    Regards,
    Eva Kemp.

  • Viewing 2 results - 1 through 2 (of 2 total)

The issue related to '‘Where to add Yoast breadcrumbs code?’' has been successfully resolved, and the topic is now closed for further responses

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.