Exclude the_breadcrumb from Homepage (3 posts)

  1. CreativeWP
    Posted 4 years ago #

    Hello, I want to exclude the_breadcrumb from an specific page, the code goes like this:

    <?php the_breadcrumb(); ?>

    How would I go about excluding the breadcrumb from this page or another page?

  2. You'll need to use a conditional statement in your index.php or page.php
    You didn't provide a link to your site, so it's hard for me to know what template to put this in.

    But it will be something like this:

    <?php if !is_home() {

    Here's more info about conditionals - http://codex.wordpress.org/Conditional_Tags

  3. CreativeWP
    Posted 4 years ago #

    Thanks Christine, it broke the site. Basically, I am running a page as homepage, the breadcrumbs show on the frontpage, but they do not want to see them on the front. Basically what I would need a PHP script that will eliminate this function only in the frontpage.

    The breadcrumb code is in the head of the template. So I would need something that will exclude the the_breadcrumb(); from the frontpage.


Topic Closed

This topic has been closed to new replies.

About this Topic