Removing breadcrumbs from home page
-
Hello
Could you please telll me what I am doing wrong.First to show the breadcrumb on my site I input following code to my header.php
<div class="breadcrumbs" typeof="BreadcrumbList" vocab="https://schema.org/"> <?php if(function_exists('bcn_display')) { bcn_display(); }?> </div>
It works fine.
Then I want to disable breadcrumb from home page.
I try to put the following code in the same header.php just below existing.<?php if(function_exists('bcn_display') && !is_front_page()){ ?> <div class="breadcrumbs" typeof="BreadcrumbList" vocab="https://schema.org/"> <?php bcn_display(); ?> </div> <?php } ?>
In this case I get the following error in this file
syntax error, unexpected ';' in the line <?php if(function_exists('bcn_display') && !is_front_page()){ ?>
Could you please advice what to do with this error?
Thank you!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Removing breadcrumbs from home page’ is closed to new replies.