Yoast SEO breadcrumbs – Problem with correct add
-
Hello again, (Just like you have one topic in one post).
I wanted to restore the breadcrumbs, I use: https://kb.yoast.com/kb/implement-wordpress-seo-breadcrumbs/ but I can not do it the way (I had before or under the logo). I have a question where is wrong?
header.php
<?php /* Empty on purpose. - Force plugins to stop stating incorrect errors - <?php wp_head(); ?> */ <?php if ( function_exists('yoast_breadcrumb') ) { yoast_breadcrumb(' <p id="breadcrumbs">','</p> '); } ?>
page.php
<div id="pageheader" class="titleclass"> <div class="container"> <?php get_template_part('templates/page', 'header'); ?> </div><!--container--> </div><!--titleclass--> <div id="content" class="container"> <div class="row"> <div class="main <?php echo esc_attr( kadence_main_class() ); ?>" role="main"> <div class="entry-content" itemprop="mainContentOfPage" itemscope itemtype="https://schema.org/WebPageElement"> <?php get_template_part('templates/content', 'page'); ?> </div> <?php /** * @hooked virtue_page_comments - 20 */ do_action('kadence_page_footer'); ?> <?php if ( function_exists('yoast_breadcrumb') ) { yoast_breadcrumb(' <p id="breadcrumbs">','</p> '); } ?> </div><!-- /.main -->
page-fullwidth.php
<?php /* Template Name: Fullwidth */ ?> <div id="pageheader" class="titleclass"> <div class="container"> <?php get_template_part('templates/page', 'header'); ?> </div><!--container--> </div><!--titleclass--> <div id="content" class="container"> <div class="row"> <div class="main <?php echo esc_attr(kadence_main_class()); ?>" role="main"> <div class="entry-content" itemprop="mainContentOfPage" itemscope itemtype="https://schema.org/WebPageElement"> <?php get_template_part('templates/content', 'page'); ?> </div> <?php /** * @hooked virtue_page_comments - 20 */ do_action('kadence_page_footer'); ?> <?php if ( function_exists('yoast_breadcrumb') ) { yoast_breadcrumb(' <p id="breadcrumbs">','</p> '); } ?> </div><!-- /.main -->
single.php
<?php get_template_part('templates/content', 'single'); ?> <?php if ( function_exists('yoast_breadcrumb') ) { yoast_breadcrumb(' <p id="breadcrumbs">','</p> '); } ?>
I
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Yoast SEO breadcrumbs – Problem with correct add’ is closed to new replies.