[Resolved] Page header image above menu

Home Forums Support [Resolved] Page header image above menu

Home Forums Support Page header image above menu

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #524354
    Alberto

    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.

    #524649
    Leo
    Staff
    Customer Support

    Hi there,

    That code should work for both pages and posts.

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

    #524801
    Alberto

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

    #525075
    Leo
    Staff
    Customer Support

    Did you assign a page header for the blog page in global locations? https://docs.generatepress.com/article/page-header-global-locations/

    #525173
    Alberto

    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.

    #525453
    Leo
    Staff
    Customer Support

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

    #525586
    Alberto

    Hello.
    Above the content area.

    #525962
    Tom
    Lead Developer
    Lead Developer

    I’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?

    #526087
    Alberto

    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.

    #526562
    Tom
    Lead Developer
    Lead Developer

    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?

    #526593
    Alberto

    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

    #526601
    Tom
    Lead Developer
    Lead Developer

    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.

    #526604
    Alberto

    Hi Tom.
    Ok. I think I got it

    Thanks!

    #526606
    Tom
    Lead Developer
    Lead Developer

    No problem! 🙂

    #527506
    Alberto

    Thanks

Viewing 15 posts - 1 through 15 (of 15 total)
  • You must be logged in to reply to this topic.