About Sridhar Katakam
I am an independent WordPress web consultant with 10 years of experience in WordPress theme installation, customization, administration, maintenance, support, documentation, troubleshooting and PSD/design to WP.
Genesis and WordPress Tutorials
Session expired
Please log in again. The login page will open in a new tab. After logging in you can close it and return to this page.
Nice tip!!
Just wondering… why don’t do it like that:
//* Remove the primary navigation menu on home/front page
add_action( ‘genesis_after_header’, ‘sk_do_nav’ );
function sk_do_nav() {
if ( is_home() || is_front_page() )
remove_action( ‘genesis_after_header’, ‘genesis_do_nav’ );
}
//* End
Would that work?
I just tried and it didn’t work.
Brad posted another method. See http://www.studiopress.com/forums/topic/executive-pro-no-nav-on-landing-page/#post-81037
Yeah, it does not work. I don’t know why. I just wanted to understand why. I guess I have to learn a lot, yet.
[…] Remove Primary Navigation Menu on Front / Home Page in Genesis […]
Is there a way to disable secondary menu for small screens (phones) only?
Sri, worked great! I only needed the subnav gone, so in your first example, I replaced nav with subnav and worked like a charm. Thanks much!!
Is there a way to add it so it not show on the front page and would only show on other pages if a user was logged in?
http://www.sridharkatakam.com/remove-primary-navigation-homepage-show-inner-pages-logged-users/
[…] my post titled Removing Primary navigation menu on home/front page in Genesis, Jeremy […]
Hello Sridhar,
This code does not seem to work on the new Whitespace Pro genesis theme.
Has something changed with the brand new Genesis themes?
Thank you very much!
Marc