Breadcrumb trail shows on all pages, except I need to remove it from the homepage. Here's my code so fare.

<?php if( !is_front_page ):?>
  <div class="breadcrumbs" style="position:absolute; bottom:0;">
    <?php if(function_exists('bcn_display'))
<?php endif;?>

at this point the code is not working, even on the homepage. how should i have the if statement written so that the breadcrumb trails show up on all other pages except the homepage.

  • You should set debug to true in wp-config.php while developing. – Pieter Goosen Jun 19 '14 at 16:27

You should change it to:

<?php if (!is_front_page()):

code code code

See this page in the Codex for more information: http://codex.wordpress.org/Conditional_Tags

  • ok, just to confirm, am i removing the leading ?> from the first line? – Oscar Arango Jun 19 '14 at 15:57
  • Cool, no problem. Please mark my answer as correct @OscarArango :) – Tim McClure Jun 19 '14 at 16:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.