Site logo

Archived topic

Page header image above menu

14 replies · Started by Alberto on March 20, 2018

Viewing posts 1–15 of 15

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.php

function 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.

Hi there,

That code should work for both pages and posts.

Can you link me to a post where it's not working?

Hello
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.

What's your setting in Layout > Page Header > Single Post Header Location?

Hello.
Above the content area.

Hello 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.

Ah, 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?

Hi 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/iuxhhu

The 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.

Hi Tom.
Ok. I think I got it

Thanks!

No problem! :)

Thanks

This archived topic is closed to new replies.