[Resolved] Page header position

Home Forums Support [Resolved] Page header position

Home Forums Support Page header position

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #196831
    Krzysztof

    I want to set page header position below the title just like it’s for post header. Tom could You this feature?

    #196859
    Tom
    Lead Developer
    Lead Developer

    You can do this in “Customize > Layout” at the very bottom πŸ™‚

    #196869
    Krzysztof

    Tom, this option works only for posts – I want to set it for pages.

    • This reply was modified 7 years, 11 months ago by Krzysztof.
    #196871
    Tom
    Lead Developer
    Lead Developer

    Why isn’t that an option? I’m not sure lol

    Try this:

    add_action( 'wp','generate_move_page_header' );
    function generate_move_page_header()
    {
        remove_action('generate_before_content','generate_page_header_inside', 10);
        add_action('generate_after_entry_header','generate_page_header_inside', 10);
    }

    Adding PHP: https://generatepress.com/knowledgebase/adding-php-functions/

    In order for the above to work you need the setting set to “Inside Content Area”.

    #196873
    Krzysztof

    Thanks! This solution is perfect! πŸ™‚

    #196964
    Tom
    Lead Developer
    Lead Developer

    You’re welcome πŸ™‚

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