WordPress.org

Ready to get started?Download WordPress

Forums

How Can I remove Breadcrumbs NavXT from Certain Pages? (9 posts)

  1. arizona-girl
    Member
    Posted 11 months ago #

    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.

  2. WPyogi
    Volunteer Moderator
    Posted 11 months ago #

    What theme are you using? Link to your site?

  3. arizona-girl
    Member
    Posted 11 months ago #

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

  4. WPyogi
    Volunteer Moderator
    Posted 11 months ago #

    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.

  5. arizona-girl
    Member
    Posted 11 months ago #

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

  6. arizona-girl
    Member
    Posted 11 months ago #

    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?

  7. WPyogi
    Volunteer Moderator
    Posted 11 months ago #

    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...

  8. arizona-girl
    Member
    Posted 11 months ago #

    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;
    }

  9. WPyogi
    Volunteer Moderator
    Posted 11 months ago #

    Where does this go?

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

Reply

You must log in to post.

About this Topic