Support » Fixing WordPress » How Can I remove Breadcrumbs NavXT from Certain Pages?

  • Hi, I want to remove the the breadcrumbs from certain pages. The breadcrumb text is gone, but the bottom border line still remains. How can I change it to #fff on some pages, or just get rid of the breadcrumb div on that page? Which ever is easiest.

    I found this code in the forum, but I don’t know which php page to place it in. If it will get rid of the line, what php file would I place it in and where?

    <?php if(function_exists(‘bcn_display’) && !is_page(array(1, 33, 91, 120)))
    {
    bcn_display();
    }?>

    Please help.

Viewing 8 replies - 1 through 8 (of 8 total)
  • What theme are you using? Link to your site?

    I’m using the Flexible Theme from Elegant Builder.
    Here’s the link: http://tinyurl.com/mcrqhua

    Looks like you can get rid of the breadcrumbs by adding this CSS:

    #breadcrumbs {
        display: none;
    }

    For additional help, please contact Elegant Themes as these forums don’t support commercial themes – partly because we do not have access to theme for testing or looking at the code.

    Hey – Thanks! I had tried #breadcrumbs with something else, but apparently I had something off. Much appreciated.

    Nope – It didn’t work right. It took away the breadcrumbs on all the rest of the pages.
    How do I specify it for just the home page?

    You can always use the page-specific class from the body tag in the CSS:

    <body class="home page page-id-811 page-template page-template-page-full-php custom-background gecko et_fullwidth_view">

    so add that:

    .home  #breadcrumbs {
        display: none;
    }

    You might want to brush up on CSS…

    Yes – I’m working on the CSS.

    Where does this go?

    <body class=”home page page-id-811 page-template page-template-page-full-php custom-background gecko et_fullwidth_view”>

    … on the css style with

    .home #breadcrumbs {
    display: none;
    }

    Where does this go?

    No place – that was to illustrate where you find page-specific classes – for future reference.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How Can I remove Breadcrumbs NavXT from Certain Pages?’ is closed to new replies.