• Hi,

    I need to put on my site a breadcrumb. I installed Breadcrumb NavXT Version 5.7.1. You have to add this code for it to work:
    <div class = “breadcrumbs” typeof = “BreadcrumbList” vocab = “https://schema.org/”&gt;
    <? php if (function_exists (‘bcn_display’))
    {
    bcn_display ();
    }?>
    </ Div>
    Where should I add this code?
    I have page type fullwidth, portfolio grid with different types of portfolio and also articles. I would like the breadcrumb to be displayed on pages, portfolio and articles.
    thank you in advance.

    Cordially

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter jmuniz

    (@jmuniz)

    Hi,

    I added the code on header.php in the parent theme, but did not work because the PHP script was not closed. I copied the header.php for my child theme by closing any opening of PHP. I put the code in the end and it works for all types of page, article and porfolio.
    It’s the best solution ?
    Thank you very much.

    Cordially

    Jmuniz

    Hey,

    Sorry for the delayed response. Can you please share a link to the navxt documentation where you obtained that function? If I can read their directions, I should be able to figure out the best area to place this.

    -Kevin

    Thread Starter jmuniz

    (@jmuniz)

    Hello Kevin,

    Thank you very much !
    Sorry for the delayed response, I have been on vacation.
    As I told you, I put the header.php script in my child theme, and it works:
    _________
    <?php
    /*
    DO NOT ADD SCRIPTS HERE
    USE a plugin like : https://ww.wp.xz.cn/plugins/header-and-footer-scripts/

    – Force plugins to stop stating incorrect errors –
    <?php wp_head(); ?>
    */
    get_template_part(‘templates/head’); ?>

    <body <?php body_class(); ?>>
    <?php
    do_action(‘virtue_after_body’);
    ?>

    <div id=”wrapper” class=”container”>
    <?php

    get_template_part(‘templates/header’);
    ?>
    <!– NavXT — nov/2017 –>
    <div class=”breadcrumbs” typeof=”BreadcrumbList” vocab=”https://schema.org/”&gt;
    <?php if(function_exists(‘bcn_display’))
    {
    bcn_display();
    }?>
    </div>
    _______

    The code link on the paragraph BASIC USAGE:
    https://mtekk.us/code/breadcrumb-navxt/#basic

    Best regards,

    -Jmuniz

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

The topic ‘Breadcrumb NavXT’ is closed to new replies.