YOAST SEO breadcrumb navigation
-
Hi there,
we are using YOAST SEO plugin and would like to implement Yoast SEO breadcrumbs on our website.
I have enabled the Breadcrumb settings in the YOAST SEO dashboard and they are displayed on the website.
We are using SUPREME (parent) and PUBLISHER (child) themes from Templatic.com.
I’ve checked on the breadcrumb settings in the themes and found the following code in the page.php of SUPREME, the parent theme:
<?php if ( current_theme_supports( ‘breadcrumb-trail’ ) && hybrid_get_setting( ‘supreme_show_breadcrumb’ ) ) { breadcrumb_trail( array(
‘separator’ => ‘»’,
) );} ?>Now, according to YOAST SEO blog – https://yoast.com/breadcrumbs-seo/ – one should add the following code snippet
<?php
if ( function_exists(‘yoast_breadcrumb’) ) {
yoast_breadcrumb( ‘</p><p id=”breadcrumbs”>’,'</p><p>’ );
}
?>to the theme’s single.php, page.php or header.php files, just above the title of the page.
My questions
Do I have to place this code in addition?
And if so, in which directory and file should I add it?
And where exactly do I have to place it in the respective file?to capitalize on the YOAST SEO plugin features and enhance SEO website.
Parent theme SUPREME has got header.php and page.php. No single.php.
Child theme PUBLISHER has only got header.php.Thanks for your help on this.
Best
Stefan
The page I need help with: [log in to see the link]
- The topic ‘YOAST SEO breadcrumb navigation’ is closed to new replies.