[Resolved] Navigation Menu Inside a Section

Home Forums Support Navigation Menu Inside a Section

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #134077
    Mosche

    I would like to know how I could get the Main Navigation Menu inside a container.
    Working with sections is one of the greatest features of GeneratePress.
    Is there a code I could use to get the navigation bar to show up inside a container?

    #134104
    Tom
    Lead Developer
    Lead Developer

    You could try creating a shortcode (not 100% sure it will work).

    function generate_navigation_shortcode() {
          return generate_navigation_position();
    }
    add_shortcode( 'generate_navigation', 'generate_navigation_shortcode' );

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

    Then you might be able to use the [generate_navigation] shortcode in your Sections.

    #135212
    Mosche

    Dear Tom,

    Thank you for your quick response.
    I was able to get the navigation inside of a section.
    Although it didn’t look good.

    But as it turns out, the solution to the real problem I’m working on should be sought in the header.
    But that should be in another topic.

    I’ll consider this question resolved.

    #135316
    Tom
    Lead Developer
    Lead Developer

    I figured it might look a little weird – might be useful for others to know how to use it in a shortcode though.

    Will be on the lookout for your other topic 🙂

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