[Resolved] Secondary Nav only on select pages

Home Forums Support [Resolved] Secondary Nav only on select pages

Home Forums Support Secondary Nav only on select pages

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #29949
    Greg Prosser

    Hello – is there a way to use the Secondary Navigation under the header only on select pages? I wanted to use the Secondary Nav only for a sub-set of pages on the site. I could use a widget/sidebar but wanted the bulk of the page for the content instead.

    Thanks,
    Greg

    #29956
    Tom
    Lead Developer
    Lead Developer

    Hmm, you could use CSS?

    First, hide the menu.

    .secondary-navigation {
          display: none;
    }

    Then, each page has a unique class in the <body> tag. Find that class, and do this:

    .page-id-86 .secondary-navigation {
          display: block;
    }

    On multiple pages:

    .page-id-86 .secondary-navigation,
    .page-id-xx .secondary-navigation,
    .page-id-x .secondary-navigation {
          display: block;
    }
    #30047
    Ross Robson

    Could this be done with the disable elements addon Tom?

    #30083
    Tom
    Lead Developer
    Lead Developer

    Yea – you can hide the secondary navigation using the Disable Elements addon.

    The method shows how to hide on all pages, and only allow it for a couple 🙂

    #32587
    Tom
    Lead Developer
    Lead Developer

    Going to mark this resolved. Reply in here to re-open if you need to.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.