Home › Forums › Support › move primary menu under hero image on front page only This topic has 12 replies, 2 voices, and was last updated 4 years, 7 months ago by Leo. Viewing 13 posts - 1 through 13 (of 13 total) Author Posts September 14, 2019 at 9:06 am #1009444 Melissa Is is possible to have my main navigation sit under my hero image, but only on the front page? September 14, 2019 at 9:33 am #1009466 LeoStaff Customer Support Hi there, Try this PHP snippet: add_action( 'wp', function() { if ( is_front_page() ) { remove_action( 'generate_after_header', 'generate_add_navigation_after_header', 5 ); add_action( 'generate_after_header', 'generate_add_navigation_after_header', 15 ); } } ); Adding PHP: https://docs.generatepress.com/article/adding-php/ Let me know if this helps π September 14, 2019 at 11:04 am #1009519 Melissa Great–Thanks! Can I style this one separately from the menu on other pages? September 14, 2019 at 11:17 am #1009526 LeoStaff Customer Support Not sure if I understand. Style what? September 14, 2019 at 11:18 am #1009527 Melissa The nav menu under the hero image September 14, 2019 at 11:21 am #1009530 LeoStaff Customer Support CSS is required. Let me know what you want to change π September 14, 2019 at 11:23 am #1009532 Melissa If you can just tell me how to target the css, I can manage from there. September 14, 2019 at 1:23 pm #1009567 Melissa I’d like to center the menu, and turn the background of the menu bar grey. September 14, 2019 at 2:16 pm #1009579 LeoStaff Customer Support Try this: .home .navigation-branding { display: none; } .home .main-navigation:not(.slideout-navigation) .main-nav { margin-left: auto; margin-right: auto; } .home .main-navigation { background-color: #333 } Adding CSS: https://docs.generatepress.com/article/adding-css/ Let me know π September 14, 2019 at 4:15 pm #1009609 Melissa That worked, but what I am aiming for is to align the whole menu in the center (on this page) September 14, 2019 at 6:45 pm #1009641 LeoStaff Customer Support Edited the CSS here: https://generatepress.com/forums/topic/move-primary-menu-under-hero-image-on-front-page-only/#post-1009579 Let me know π September 15, 2019 at 7:22 am #1009907 Melissa Worked beautifully. Thanks September 15, 2019 at 7:42 am #1009914 LeoStaff Customer Support No problem π Author Posts Viewing 13 posts - 1 through 13 (of 13 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In