[Resolved] Hide Navigation if empty

Home Forums Support [Resolved] Hide Navigation if empty

Home Forums Support Hide Navigation if empty

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #771424
    Sebastian

    Hi there,

    I want to hide the main navigation, when its empty. Background: I want to have specific “product menues” (main navigations) on specific pages (already installed the Plugin Conditional Menus).

    I searched for a solution and came across “fallback_cb” “false”, but in my case I would prefer not to edit the theme and the core menu function.

    Is there an easier solution to do so? Perhaps with a Code Snippet?

    Thanks!

    Sebastian

    #771565
    Leo
    Staff
    Customer Support

    Hi there,

    Have you tried using the Layout Element?
    https://docs.generatepress.com/article/layout-element-overview/

    Let me know 🙂

    #771631
    Sebastian

    Awesome!!! Thanks.
    That works smooth and easy.

    Another short question about the Layout Elements:
    How could I manage to have the Secondary Navigation under the green Site Header Block I made with the Layouter.

    Link: https://wkg.andy-rieger.de/waldklettergarten-pappenheim/unser-waldklettergarten/

    #771641
    Leo
    Staff
    Customer Support

    Can you open a new topic for the separate question?

    It will help us to track the issue.

    Thanks!

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