Home › Forums › Support › Mobile menu display open This topic has 9 replies, 3 voices, and was last updated 7 years, 11 months ago by Tom. Viewing 10 posts - 1 through 10 (of 10 total) Author Posts May 13, 2016 at 10:39 pm #194159 marcel 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 May 13, 2016 at 11:56 pm #194166 TomLead Developer Lead Developer Hi there, Not too sure what you mean – are you wanting the mobile menu to look just like the desktop menu? May 14, 2016 at 7:50 am #194224 marcel Tom ! thanks for your answer. It’s not what I need , I leave a link to an image Example image -thanks tom May 14, 2016 at 9:39 am #194255 TomLead Developer Lead Developer I’m sorry I still don’t quite understand what you’re wanting to do? May 14, 2016 at 10:27 am #194262 Marcel Tom, in mobile version i nedd primary menu toggled active May 14, 2016 at 11:44 pm #194324 TomLead Developer Lead Developer Ah, this should make it opened by default: https://gist.github.com/generatepress/d50527e008498000e680 Adding PHP: https://generatepress.com/knowledgebase/adding-php-functions/ May 15, 2016 at 7:00 am #194364 Marcel Excelent tom. Is possible apply this only in home page? May 15, 2016 at 10:05 am #194395 TomLead Developer Lead Developer 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; } May 16, 2016 at 6:55 am #194614 marcel Perfect!!! thanks tom May 16, 2016 at 10:27 am #194663 TomLead Developer Lead Developer You’re welcome 🙂 Author Posts Viewing 10 posts - 1 through 10 (of 10 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In