- This topic has 15 replies, 3 voices, and was last updated 8 years ago by
Tom.
-
AuthorPosts
-
March 3, 2018 at 6:56 pm #510919
Hugo
Hi Tom.
Is there a way to do that in GP?See the image attached. Thanks
March 3, 2018 at 8:59 pm #510948Tom
Lead DeveloperLead DeveloperHi Hugo,
I’m sure it can be done.
Can you set up your page using the Page Header and merge your navigation with it?: https://docs.generatepress.com/article/merging-the-page-header-site-header/
Once you do that, link me to the page and I’ll see what I can do 🙂
March 4, 2018 at 4:04 pm #511593Hugo
Thanks Tom.
This is the link https://tecnohl.tk/
March 4, 2018 at 5:44 pm #511631Leo
StaffCustomer SupportTry this: https://generatepress.com/forums/topic/page-header-image-above-menu/#post-288568
Then set header padding to 0: https://docs.generatepress.com/article/header-padding/
March 4, 2018 at 6:08 pm #511637Hugo
Hi Leo.It works. But to see the nav bar i have to scroll down the page. I want to see the nav bar without scroll the page.
Thanks
March 4, 2018 at 9:51 pm #511704Leo
StaffCustomer SupportWhere are you adding that picture?
Doesn’t look like you are using page header anymore?
March 6, 2018 at 7:13 pm #513469Hugo
I disable de header, and i put the image in the before header hook.
With the header didnt work.
March 6, 2018 at 8:59 pm #513517Tom
Lead DeveloperLead DeveloperIs there any way you can link me to an example page where this is being done? I wouldn’t mind checking out how they’re doing it.
Let me know 🙂
March 7, 2018 at 7:31 pm #514330March 7, 2018 at 9:31 pm #514379Tom
Lead DeveloperLead DeveloperGot it.
Right now, you have a static image added, which won’t work.
You need to add it as a background image to an element in order to set the height of it.
The Page Header module is the easiest way to achieve it, but you can also add your own element with the background image.
Once you do that let me know and I’ll provide a little CSS 🙂
March 11, 2018 at 4:17 pm #517355Hugo
Ready. I put the image as a header. im waiting for you
March 11, 2018 at 8:27 pm #517442Tom
Lead DeveloperLead DeveloperAlright, getting there!
You’ll actually want to turn off the “Merged header” option in the Page Header settings.
Then add the code Leo pointed you to: https://generatepress.com/forums/topic/page-header-image-above-menu/#post-288568
March 12, 2018 at 9:48 am #517978Hugo
Hi Tom. I do that. Disable the merge header option, and i put the phpcode.
Nothings happend.Thanks
March 12, 2018 at 8:25 pm #518316Tom
Lead DeveloperLead DeveloperSorry, that was the wrong snippet.
Can you try this instead?:
add_action( 'after_setup_theme', 'tu_move_navigation' ); function tu_move_navigation() { remove_action( 'generate_after_header', 'generate_add_navigation_after_header', 5 ); add_action( 'generate_after_header', 'generate_add_navigation_after_header', 99 ); }March 13, 2018 at 8:38 pm #519346Hugo
Hi Tom. It didnt work
-
AuthorPosts
- You must be logged in to reply to this topic.