- This topic has 14 replies, 3 voices, and was last updated 6 years, 1 month ago by Alberto.
-
AuthorPosts
-
March 20, 2018 at 3:34 am #524354Alberto
Hello.
I’ve tried this approach you told here: https://generatepress.com/forums/topic/page-header-image-above-menu/#post-288568 to place the page header image above the nav menu and it works in all pages but the posts pages.
This is the function used in my functions.phpfunction dom_mover_navegacion() { remove_action( 'generate_after_header', 'generate_add_navigation_after_header', 5 ); add_action( 'generate_after_header', 'generate_add_navigation_after_header', 15 ); } add_action( 'after_setup_theme','dom_mover_navegacion' );
Could you tell me how can I do to place the page header image above menu also in posts pages?
Thanks in advance.
March 20, 2018 at 9:18 am #524649LeoStaffCustomer SupportHi there,
That code should work for both pages and posts.
Can you link me to a post where it’s not working?
March 20, 2018 at 12:15 pm #524801AlbertoHello
This is the blog page: https://tlp.zeine.es/blog/ No page header there…
And this is a post page: https://tlp.zeine.es/los-horarios-de-las-comidas-y-sueno-nuevo-factor-a-tener-en-cuenta-en-trastornos-alimentarios/ The page header is under the menu.
You can see the page header correctly placed in the other pages.Regards.
March 20, 2018 at 9:39 pm #525075LeoStaffCustomer SupportDid you assign a page header for the blog page in global locations? https://docs.generatepress.com/article/page-header-global-locations/
March 21, 2018 at 1:55 am #525173AlbertoHello
Ok, that solves the issue in the blog page (A mistranslation has misled me)
The global locations are as you can see here: https://prnt.sc/iu6pg5
But you know that’s not what’s causing the second issue, so I don’t understand why you won’t talk to me about it and I have to wait again for an answer.Regards.
March 21, 2018 at 7:51 am #525453LeoStaffCustomer SupportWhat’s your setting in Layout > Page Header > Single Post Header Location?
March 21, 2018 at 10:17 am #525586AlbertoHello.
Above the content area.March 21, 2018 at 8:57 pm #525962TomLead DeveloperLead DeveloperI’m not seeing a Page Header within the code of your single post: https://tlp.zeine.es/los-horarios-de-las-comidas-y-sueno-nuevo-factor-a-tener-en-cuenta-en-trastornos-alimentarios/
Did you remove it?
March 22, 2018 at 1:27 am #526087AlbertoHello Tom.
No, I don’t remove it. You can see it just above the post title, is the image that says “Zeine…” You can see it also in all the site pages.
Even if you open the web inspector you can see the class page-header-image-single (not page-header-image) in the div.Regards.
March 22, 2018 at 10:12 am #526562TomLead DeveloperLead DeveloperAh, that’s just the featured image.
It looks like it’s set to “Above Title” though. Can you confirm that it’s set to “Above Content Area” within the “Posts” tab in the Blog section?
March 22, 2018 at 10:32 am #526593AlbertoHi Tom.
No, that’s no the featured image, that’s a page header image, just the same as in the rest of the website.
This is the setup: https://prnt.sc/iuxhhuMarch 22, 2018 at 10:40 am #526601TomLead DeveloperLead DeveloperThe Page Header options only apply to Page Headers with content within them. Otherwise it’s just an image, which falls under “Featured Images”.
Instead, try altering the option in Customize > Layout > Blog.
March 22, 2018 at 10:48 am #526604AlbertoHi Tom.
Ok. I think I got itThanks!
March 22, 2018 at 10:49 am #526606TomLead DeveloperLead DeveloperNo problem! 🙂
March 23, 2018 at 1:51 am #527506AlbertoThanks
-
AuthorPosts
- You must be logged in to reply to this topic.