• Resolved korfiati_a

    (@korfiati_a)


    Hello, tell me how to do it.
    I want to add breadcrumb plugin by Yoast WordPress SEO to this topic
    I can not understand where paste it into the code

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

    ???

    Thank you for help
    My Site – http://korfiati.ru/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi korfiati_a. I used this in page.php to show breadcrumbs at the top of the content area on all pages except those that are excluded:

    <?php get_template_part('inc/page-title'); ?>
    
    <div class="pad group">
    
    <!-- add breadcrumbs using Breadcrumb NavXT plug-in; exclude speciic pages -->
    <div class="breadcrumbs">
    	<?php if(function_exists('bcn_display') &&
    			(! is_page('terms')) &&
    			(! is_page('privacy')) &&
    			(! is_page('copyright'))
    			)
    		{ bcn_display(); }
    	?>
    </div>
    
    <?php while ( have_posts() ): the_post(); ?>

    Change the function names and then style/position it using css.

    Thread Starter korfiati_a

    (@korfiati_a)

    Thank you for your help
    It really works, but puts a breadcrumb not go where I would like. I showed the image where you would like to see them – https://yadi.sk/i/SfWbr92TfBqpr

    or do you think that so wrong?

    I didn’t see an image at the link you provided. Can you check it please? Thanks.

    Thread Starter korfiati_a

    (@korfiati_a)

    look here piease – Google disk

    If you want it above the page title then try moving the breadcrumb block of code above the title line:

    <section class="content">
    
    <!-- add breadcrumbs using Breadcrumb NavXT plug-in; exclude speciic pages -->
    <div class="breadcrumbs">
    	<?php if(function_exists('bcn_display') &&
    			(! is_page('terms')) &&
    			(! is_page('privacy')) &&
    			(! is_page('copyright'))
    			)
    		{ bcn_display(); }
    	?>
    </div>
    
    	<?php get_template_part('inc/page-title'); ?>
    
    	<div class="pad group">
    
    		<?php while ( have_posts() ): the_post(); ?>
    Thread Starter korfiati_a

    (@korfiati_a)

    Thank you, it works. You helped me a lot.

    You’re welcome. Glad I could help. If you don’t need any further help here please mark the topic as Resolved. Thanks.

    Thread Starter korfiati_a

    (@korfiati_a)

    I wanted to show the result – http://korfiati.ru/2015/03/vyikroyka-kostyuma/

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘breadcrumb in theme’ is closed to new replies.