[Support request] Header with 3 sections including merged navigation

Home Forums Support [Support request] Header with 3 sections including merged navigation

Home Forums Support Header with 3 sections including merged navigation

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2048259
    Shaun

    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

    #2048317
    Elvin
    Staff
    Customer Support

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

    A wise man once said:
    "Have you cleared your cache?"

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