• Hi there,

    I’m redesigning my site, and love the look and feel of Virtue.

    I would like to use one of the menu locations (Secondary Menu, in this case) to display the *default* menu (which you would get on a standard WordPress site with no custom menus created)

    This default menu (created from my page structure) is currently perfect for a desktop site/user, so in order to keep this similar when I change themes, I wish to use this as my Secondary Navigation menu.

    However – whereas in my current theme I just leave the menu location with no menu selected, in Virtue, it hides the menu.

    How can I tell it, at just this menu location, to fall back to the default menu?

    Many thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • hannah

    (@hannahritner)

    Hi,
    Sorry, I’m not sure I’m totally following. What do you mean by “default menu”?
    If you navigate to Appearance > Menus you can create a menu and set it to Secondary Navigation. Does this not work for you?

    Hannah

    Hey,
    You wrote “How can I tell it, at just this menu location, to fall back to the default menu?” – Just to clarify this point because virtue has multiple menu options and if you want to hide a menu you just leave it empty there is no setting to show all pages like some themes use.

    Thus you have to create a menu in your appearance > menus page.

    Kadence Themes

    Thread Starter ConfusedTA

    (@confusedta)

    hannah, on some themes (such as the default Twenty XXX themes), if you do not specify a menu, then WordPress will use a default menu which is populated with all Pages configured within the system. This allows the menu to automatically modify itself if you add or remove pages. Virtue does not do this. It hides the menu at that location if you do not specify one that has been created yourself.

    Thanks for the reply, Kadence Themes.

    I understand why it’s done that way (to allow you to not have a menu at a location), but in my case that’s unfortunate – I was hoping there was a way without needing to duplicate the header.php into my child theme and removing the check for a menu being assigned.

    Alternatively, would you consider adding some hooks into the header, which would allow me to add my own menu via the child theme’s functions.php?

    Thanks

    Hey,
    I am a little confused? adding a menu would be a matter of a minute at max? Even for a really large one. Also if you wanting to use the default pages menu on other themes you won’t lose it by adding assigning a menu using this theme, Once you switched you could still use the pages menu if the theme looked for it.

    Is there something I’m missing that would make this a priority? I’ve not had anyone really want this?

    As for adding a hook, I don’t see a clean way to do that. Do you have a recommendation? To me it seems un-necessary to add any extra functions for something like this.

    Kadence Themes

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Use default WordPress menu as Secondary Menu’ is closed to new replies.