Hi,
Yes, it's possible, first you have to create the second menu, to do that, please edit Creativity/gavern/config/menus.json file and add your new menu:
- Code: Select all
{
"main": true,
"location": "frontpagemainmenu-guest",
"name": "Main menu - Frontpage Guests",
"description": "Main menu of the theme for frontpage and logged out users"
},
Now you can add new menu with menu items in your Dashboard -> Appearacne -> Menus and assign it to the new location.
In this theme it may be complicated a little, because there's different menu for the frontpage and for other subpages.
Anyway try to replace this fragment from Creativity/layouts/header.php file:
- Code: Select all
<?php gavern_menu('frontpagemainmenu', 'gk-main-menu', array('walker' => new GKMenuWalker())); ?>
with:
- Code: Select all
<?php if ( is_user_logged_in() ) : ?>
<?php gavern_menu('frontpagemainmenu', 'gk-main-menu', array('walker' => new GKMenuWalker())); ?>
<?php else : ?>
<?php gavern_menu('frontpagemainmenu-guest', 'gk-main-menu', array('walker' => new GKMenuWalker())); ?>
<?php endif; ?>
The similar conditions you may add to the subpagemainmenu and mobile menus in the same file.