Archived topic
Element: siteheader navigation location
6 replies · Started by Tom on August 10, 2019
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
Hi there,
Are you wanting this layout (navigation below page hero) globally or just the front page?
Let me know :)
Hi Leo,
The header is only visible on the post page. So its only necessary on the post/homepage :).
Hi Leo,
The header is only visible on the post page. So its only necessary on the post/homepage :)..
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 :)
Works perfectly :)
Awesome :)