Archived topic
Mobile menu display open
9 replies · Started by marcel on May 13, 2016
Tom , as I can do to make the mobile version looks a displayed menu? so product categories are easier
That is not closed but open display
Thanks
Hi there,
Not too sure what you mean - are you wanting the mobile menu to look just like the desktop menu?
Tom ! thanks for your answer. It's not what I need , I leave a link to an image
Example image -thanks tom
I'm sorry I still don't quite understand what you're wanting to do?
Tom, in mobile version i nedd primary menu toggled active
Ah, this should make it opened by default: https://gist.github.com/generatepress/d50527e008498000e680
Adding PHP: https://generatepress.com/knowledgebase/adding-php-functions/
Excelent tom. Is possible apply this only in home page?
Change the code to this:
add_filter( 'generate_navigation_class', 'generate_mobile_menu_toggled');
function generate_mobile_menu_toggled( $classes )
{
if ( is_front_page() )
$classes[] = 'toggled';
return $classes;
}
Perfect!!! thanks tom
You're welcome :)
