This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Use a different Menu on members pages

  • Creator
  • #24100

    I have created a “primary menu” and “member menu”.

    I use the primary menu throughout my site. I can’t figure out how to make the “member menu” view-able on just my member pages. There is not an option to select the menu I want on the pages.

    Any help would be grateful.

    This theme is very good btw.


Viewing 1 replies (of 1 total)
  • Author
  • #24102
    Jason Bobich

    Hi Bruce,

    There is no feature for this in the theme, and will be code customization you’ll need to make from your child theme.

    If it were me, here’s how I’d do it. First, you should register a new menu theme location with WordPress in your child theme’s functions.php.

    Then, if you look at /includes/theme-functions.php, line 472 of the theme, you can see that the when wp_nav_menu() is called, the array of arguments passed in is filtered with themeblvd_primary_menu_args.

    So, from your child theme’s functions.php, you’re going to filter this array of arguments. Within your function hooked to the filter, check if a user is logged in (or of a certain capability or whatever you want), and if they are, then change the $args['theme_location'] to whatever ID you gave your user menu.

Viewing 1 replies (of 1 total)
  • The forum ‘Commodore WordPress Theme (formerly Complexity)’ is closed to new topics and replies.