Site logo

Archived topic

Secondary Nav only on select pages

4 replies · Started by Greg Prosser on September 15, 2014

Viewing posts 1–5 of 5

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

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

Could this be done with the disable elements addon Tom?

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 :)

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

This archived topic is closed to new replies.