Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #87572
    Mark
    Participant

    I was previously able to do this using this code:
    .page-id-51 #masthead,
    .page-id-51 #menu-main-menu,
    .page-id-51 #breadcrumb-list {
    display: none;
    }

    Now that I have the search embedded in the Nav, I’ve tried several variants of:
    .page-id-51 #masthead,
    .page-id-51 #nav-primary,
    .page-id-51 #breadcrumb-list {
    display: none;
    }

    but the nav still shows… please help

    #87592
    Mahesh
    Keymaster

    @calsurance: In which page do you want this, can you please post the page url.

    Regards,
    Mahesh

    #87634
    Mark
    Participant
    #87661
    Mahesh
    Keymaster

    @calsurance: For the given page, you’ll just have to do a slight change and it will fix the issue. Please use the following CSS:

    .page-id-331 #masthead, 
    .page-id-331 .nav-primary, 
    .page-id-331 #breadcrumb-list {
        display: none;
    }

    Note: Your variant in second one didn’t work because nav-primary is class not id so we have to use .(dot for class) instead of #(hash for id).
    Hope this helps.

    Regards,
    Mahesh

    #87686
    Mark
    Participant

    Doh! I missed the forest for the trees on that one. Thanks for the help.

    Because I have the Search enabled in the Nav bar, the working code is:
    .page-id-331 #masthead,
    .page-id-331 .nav-primary.search-enabled,
    .page-id-331 #breadcrumb-list {
    display: none;
    }

    #87722
    Mahesh
    Keymaster

    @calsurance: Thank you for your appreciation. Yes, your above code is more specific (navbar having classes .nav-primary and .search-enabled), and since you’ve enabled searchbar, it will work fine. Have a nice day!

    Regards,
    Mahesh

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Hiding Masthead to Breadcrumb per page’ is closed to new replies.