[Resolved] Element: siteheader navigation location

Home Forums Support [Resolved] Element: siteheader navigation location

Home Forums Support Element: siteheader navigation location

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #980825
    Tom

    Hi,

    I’ve installed the Artic theme and I wanted to create a introduction hero header on the blog homepage. However the menu should come below this introduction. I selected navigation location: below header, but the navigation is fixed probably… Or is it a bug?

    Would love to know the solution.

    Kind regards,
    Tom

    #980909
    Leo
    Staff
    Customer Support

    Hi there,

    Are you wanting this layout (navigation below page hero) globally or just the front page?

    Let me know πŸ™‚

    #980922
    Tom

    Hi Leo,

    The header is only visible on the post page. So its only necessary on the post/homepage :).

    #981057
    Tom

    Hi Leo,

    The header is only visible on the post page. So its only necessary on the post/homepage :)..

    #981062
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Give this PHP a shot:

    add_filter( 'generate_page_hero_location', function( $location ) {
        if ( is_front_page() ) {
            $location = 'generate_before_header';
        }
    
        return $location;
    } );

    Adding PHP: https://docs.generatepress.com/article/adding-php/

    Let me know πŸ™‚

    #981075
    Tom

    Works perfectly πŸ™‚

    #981445
    Tom
    Lead Developer
    Lead Developer

    Awesome πŸ™‚

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