• On my home page I do not choose a breadcrumb. In Chrome the home page looks good. The other browsers show a gap on the place of the breadcrumb, although it has not been chosen.
    In Chrome there are no tags representing the breadcrumb. In the other browsers you see the elements of the breadcrumb with all of them height = 0.
    It is not possible to hide the elments of the breadcrumb with the CSS style rule
    selector {display:none;} .

    How to get rid off the gap?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author John Havlik

    (@mtekk)

    Normally, to exclude the breadcrumb trail from the home page, you would use the following calling code:

    <?php if(function_exists('bcn_display') && !is_front_page()):?>
    <div class="breadcrumbs" typeof="BreadcrumbList" vocab="https://schema.org/">
        <?php bcn_display();?>
    </div>
    <?php endif; ?>

    This will prevent any output from Breadcrumb NavXT on the front page.

    Thread Starter Ron5

    (@ron5)

    Where do I add this code?

    I tried with a function and the init hook in functions.php of my theme, but this is not working.

    Plugin Author John Havlik

    (@mtekk)

    The above code would be used to replace your current call to bcn_display(). If you are using the included Widget, then there should be an option to exclude on the front page in the Widget settings.

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

The topic ‘Gap on home page’ is closed to new replies.