- This topic has 7 replies, 2 voices, and was last updated 10 years, 8 months ago by .
Viewing 8 posts - 1 through 8 (of 8 total)
Viewing 8 posts - 1 through 8 (of 8 total)
- The topic ‘internal page help’ is closed to new replies.
Home › Community Forums › Legacy Theme Support › internal page help
I am not using a primary nav only a header nav. On my internal pages I still want the colored section where the primary nav would be, but when I don’t have a primary nav there is no section. How can I add this section without using a primary nav?
Thanks
kris
You could just add the exact same nav ID in your functions file like this –
/** Nav Bar */
add_action('genesis_after_header', 'nav_bar');
function nav_bar() {
echo '<div id="nav"></div>';
}
Then add some padding to the #nav in your css on or around line 321.
so when I do that it adds to the home page which creates space above my slider. Can I exclude it from the home page or is there a differnt solution?
Thanks
kris
It shouldn’t add extra space unless you added too much padding. How much padding did you add?
I added 20px and it worked fine for me.
I added 20px, it is adding the nav bar on the home page.
Look at my home page.
Add this to your style.css to remove it from the homepage
.home #nav {
display: none;
}
thanks
You’re Welcome