Search for: Log In Free Support [Resolved] Navigation Menu Inside a Section Home › Forums › Support › Navigation Menu Inside a Section This topic has 3 replies, 2 voices, and was last updated 5 years, 5 months ago by Tom. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts September 3, 2015 at 7:37 am #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? September 3, 2015 at 10:13 am #134104 TomLead 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. Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ Ongoing Development: https://generatepress.com/ongoing-development September 8, 2015 at 4:50 am #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. September 8, 2015 at 9:23 am #135316 TomLead 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 🙂 Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ Ongoing Development: https://generatepress.com/ongoing-development Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In