Archived topic
Header with 3 sections including merged navigation
1 reply · Started by Shaun on December 13, 2021
Hi
I am working on where I need the header to have 3 columns with a background image across all three:
1. The first column is the logo and site name as text
2. The middle column is a tagline
3. The third column is the site navigation
I have read https://docs.generatepress.com/article/split-header-three-sections/ but it doesn't include the site navigation.
The site currently has navigation merged, with two coluns:
1. Logo and site title as words
2. Navigation
Hi Shaun,
We can turn the default GP function in generating the navigation into this PHP snippet:
add_shortcode('gp_nav_shortcode', 'generate_navigation_position');
You can then place [gp_nav_shortcode] shortcode on the 3rd column.
As for the logo navigation, try this:
add_shortcode('gp_header_items', 'generate_header_items');
And then place [gp_header_items] shortcode on the 2nd column.
Note: Make sure "Execute Shortcode" is enabled on the hook element. :D