I would like to center my logo and use the hamburger menu at the same time. Unfortunately it is only possible to place the logo on the left or right side (I choose the option "100% width and hamburger menu"). Is there a solution to center the logo and have the hamburger menu on the right side? (LogoPlacement.png)
Otherwise I would use the option "horizontal", but since my homepage is a one-pager, the menu items should only be visible on the start page (when you click on it, the page scrolls to the corresponding content). At the moment you can also see the menu items on portfolio pages, but of course they don't work there. is it possible for subpages to show an alternative menu without omitting the header with the logo?
I would like to center my logo and use the hamburger menu at the same time. Unfortunately it is only possible to place the logo on the left or right side (I choose the option "100% width and hamburger menu"). Is there a solution to center the logo and have the hamburger menu on the right side? (LogoPlacement.png)
Otherwise I would use the option "horizontal", but since my homepage is a one-pager, the menu items should only be visible on the start page (when you click on it, the page scrolls to the corresponding content). At the moment you can also see the menu items on portfolio pages, but of course they don't work there. is it possible for subpages to show an alternative menu without omitting the header with the logo?
Thank you very much.
HI!
Here is the code example for settings up different menu on the different pages via the filter:
function thegem_custom_wp_nav_menu_args($args) {
if(in_array(get_the_ID(), array(555))) {
if($args['theme_location'] == 'top_area') {
$args['menu'] = 1000;
}
}
if(in_array(get_the_ID(), array(666))) {
if($args['theme_location'] == 'primary') {
$args['menu'] = 1001;
}
} return $args;
}
add_filter('wp_nav_menu_args', 'thegem_custom_wp_nav_menu_args');
555 and 666 - page ID
1000 and 1001 - menu ID
Where do I have to insert the code?
Please install the Child theme:
https://codex-themes.com/thegem/documentation/#installing-child-theme
And you need to use /wp-content/themes/thegem-child/functions.php file.