• Resolved M

    (@beat-diabetes)


    Hi there,
    love your theme but I am not familiar with CSS modifications.
    could you tell me how to make a sub-menu custom widget for each page?
    I have sub-menus for each page and I want this sub menu items to be displayed on the left-side custom menu widget, to correspond to the primary (sub) menu items.

    Right now, the same custom menu widget is displaying for every page.
    It’s https://www.moneystrategies.ca. I have a landing page activated. Could you give me your email so i can give you the login info please? Thank you very much!

Viewing 3 replies - 1 through 3 (of 3 total)
  • How many different menus are you talking about, three or four? Ten?

    Here’s a simple, but “kludgy” way of making what you want happen.

    Each page has a unique ID associated with the body element, like page-id-2. And each widget in the sidebar is going to have a unique ID as well, like nav_menu-8. So what you would do is create a custom menu widget in the sidebar for each of your custom menus, hide all of them by default using a CSS rule, then add additional rules which display the menu depending upon the page ID:

    /* Hide all custom menus by default */
    .widget_nav_menu {
       display: none;
    }
    /* On page 3, show menu 8 */
    /* On page 4, show menu 7 */
    .page-id-3 .nav_menu-8,
    .page-id-4 .nav_menu-7
    {
       display: block;
    }

    Another option would be to create a different menu for the page.

    In the theme options > misc settings. You can create extra sidebars, create one for each page you want a different menu on. Then in the widget area add your menus to different sidebars, assign the sidebar to the page using the sidebar page template.

    Kadence Themes

    Thread Starter M

    (@beat-diabetes)

    That’s great, it works, thanks so much for the feedback!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom Menu Widget – need a different one for each page’ is closed to new replies.