- This topic has 2 replies, 3 voices, and was last updated 9 years, 6 months ago by .
- You must be logged in to reply to this topic.
Sales That Work
Home › Forums › Winning Agent Pro Theme › Remove Primary Nav from Homepage but keep it on other pages
How can I remove the primary nav on the homepage but keep it on other pages? Is there a plugin that will allow you to select pages for the primary nav to be displayed on?
Hi Dan,
You could add a conditional statement. Something along the lines of:
// Remove nav from regular location
remove_action( 'genesis_after_header', 'genesis_do_nav' );
// Add custom nav function instaed
add_action( 'genesis_after_header', 'my_selective_nav' );
function my_selective_nav() {
// if we're not on the front page, display the nav
if ( ! is_front_page() ) {
genesis_do_nav();
}
}
Note that code is UNTESTED and could blow up your functions file. But that’s the general idea of how you’d go about it.
Cheers,
Carrie
Wondering if this code was tested?
There are a lot of different types of mortgages, and there are a lot of different types of real estate property. Here is a list of the most common types of each. We’ve added some links to the most popular articles on the subject.
We think getting many viewpoints to a particular question is important because it helps you to make better decisions. It’s so important that we have woven the Forum all throughout Winning Agent. We invite you to ask questions, make comments, and be part of the discussion.