Tagged: primary menu
- This topic has 7 replies, 3 voices, and was last updated 8 years, 3 months ago by Mahesh.
-
AuthorPosts
-
July 10, 2016 at 6:22 pm #95081nomadaParticipant
Hi!
I created a new Menu and selected the option to put it as Top Header Menu. The other Menu (the default one, with “Home”) is not selected in the , nor the Secondary Menu. I edited the options at Dashboard -> Appearance -> Customize -> Menus -> “My Menu” -> Menu Location, but still, I have the Primary Menu showing too. So I ended up with a duplicated Menu.
For some reason the primary default Menu is always there, except if I change the location of “my menu” to Primary. Then it substitutes it. But I want “my menu” to be on the Top Header.Did I miss something in the process? What can I do to make the default menu disappear?
July 11, 2016 at 11:49 am #95109MaheshParticipant@nomada: For disabling it, you can do it with custom CSS. Go to Dashboard=> Appearance=> Customize=> Theme Options=> Custom CSS box and add the following CSS:
#nav-primary { display: none; }
Regards,
MaheshJuly 11, 2016 at 7:31 pm #95142nomadaParticipantThanx Mahesh!
#nav-primary didn’t work, but .nav-primary did.I was looking to change the template file through the child-theme, but couldn’t find it. It can be very useful to know in order to customize other small stuff. Where do I find it?
July 12, 2016 at 12:26 pm #95189MaheshParticipant@nomada: Sorry, my bad, its
.nav-primary
. Can you please explain in details what you want to do by change template.Regards,
MaheshJuly 13, 2016 at 3:48 am #95266nomadaParticipantThe idea was to remove the <nav> instead of just hide it. I have nothing in mind right now. I just feel more confidant knowing well the template structure and what are my possibilities into adapting it to my needs, using the child-theme.
July 13, 2016 at 9:38 am #95276MaheshParticipant@nomada: For that, you’ll need to create a child theme. You can find more on creating child theme HERE. Then in your child theme’s functions.php add the following code:
add_action( 'init', 'clean_journal_child_remove_primary_menu' ); function clean_journal_child_remove_primary_menu() { remove_action( 'clean_journal_after_header', 'clean_journal_primary_menu', 20 ); }
Note: This will completely remove Primary Menu from the theme, if you want to have primary menu again, you’ll need to remove this function.
Regards,
MaheshAugust 17, 2016 at 9:22 pm #97477DawnParticipantGood morning!
Thank you for your help! Not a “code guru”! I just know enough to be dangerous…Do you have any advice for the following…
The .nav-primary worked great to remove the Primary menu from the monitor view but does not remove the Primary menu from the mobile view? Here is the code…
<span class=”mobile-menu-text”>Menu</span>
Any ideas of how to get rid of that?
Thanks,
DawnAugust 18, 2016 at 9:57 am #97513 -
AuthorPosts
- The topic ‘Primary Menu don't disapear when selecting adding other Top Header Menu’ is closed to new replies.