Hide top menu in mobile view

Latest Reply from mibant at 2016-10-09 07:46:20 Solution
Hi,

I try to use your Kardio theme, but I have one problem:
I just need and use the main menu, the top menu is blank so in desktop view it does not appear, ok for me.

But in mobile access you have two drop down menues, including the empty top menu.
I need to get rid of this empty top menu, any way to do this?

Thank you!
mibant
Hi!

We wrote this blog article especially for you:
https://smthemes.com/blog/things-you-need-to-know-about-menus-in-wordpress/
There is everything on this issue.
There is written:
the last thing you have to do is to delete the appropriate code for proper mobile view:

    for top menu - <?php smt_mobile_menu('sec-menu'); ?>
for main menu - <?php smt_mobile_menu('main-menu'); ?>


Note: all these code you may find in the header.php file of the theme or top.php file for old themes.
Hi Alice,

Working, great, thanks a lot!!

One last question: in the drop down menu I can see sometimes instead of the title:
<span class="dojodigital_toggle_title">HereTheCorrectTile</span>

Any idea, where this is coming from?

Thanks,
mibant
Hi,

my last problem was due to the "Hide Title" plugin, all working now! :)

Thanks,
mibant

Leave a reply

Add codeAdd image