- This topic has 26 replies, 10 voices, and was last updated 5 years, 11 months ago by
Leo.
-
AuthorPosts
-
January 30, 2018 at 5:40 pm #484055
Drew
You beat me to the punch, I was just popping in to say I think I just figured out an easier way to do it entirely with CSS so no worries 🙂
January 30, 2018 at 6:32 pm #484081Leo
StaffCustomer SupportAwesome 🙂
February 24, 2018 at 1:53 pm #504745Mark
Hi Leo,
Thanks for your help. That snippet did the trick as you can see at Fourway.michianait.net.
I am surprised that something seemingly as basic as positioning the nav menu take extra code to implement. I would have thought that this was a very common scenario.
Mark
February 24, 2018 at 5:16 pm #504833Leo
StaffCustomer SupportHi Mark,
This has definitely been an increasingly popular layout people want.
I was actually thinking about mentioning to Tom the other day.
Will see if we can add this in the future.
Thanks for the suggestion!
June 26, 2018 at 3:30 am #608761Lee
Hi.
I have been trying to achieve the header image above the navigation as per the above instructions.
I have added the code snippets plugin and pasted the following code:
add_action( ‘after_setup_theme’,’craig_move_navigation’ );
function craig_move_navigation() {
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 );
}
}It doesn’t seem to be working – any ideas what i am doing wrong?
The page in question is:
ph.konstructstudios.co.uk
Many thanks in advance.
Lee
June 26, 2018 at 3:40 am #608772David
StaffCustomer SupportHi Lee,
try the code Tom provides here:
https://generatepress.com/forums/topic/page-header-image-above-menu/#post-288568
June 26, 2018 at 4:22 am #608802Lee
Hi David.
Thanks for the reply – i used the code i did as that was only to affect the home page header. I think the code on reply #288568 was site-wide?
Kind regards.
Lee
June 26, 2018 at 4:42 am #608810David
StaffCustomer SupportHi Lee, that is correct, the other code will apply to only the home page if you have set it as your home page in the WordPress > Settings > Reading.
March 14, 2019 at 7:08 am #838851Florian
Hi Support Team. I’m trying to set the nav below my header. the snippet is not working out of some reason. If i choose in customizer layout>navigation>position below header , nothing is happening. what am i doing wrong?
Thanks a lot
March 14, 2019 at 1:04 pm #839200Leo
StaffCustomer SupportHi there,
Can you open a new topic and link me to the site in question?
Thanks!
April 15, 2020 at 6:53 pm #1240866mrwebsites
This worked a charm. Thank you for all the support and docs – it’s an education in WordPress
April 16, 2020 at 9:21 am #1241837Leo
StaffCustomer SupportNo problem 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.