Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #95081
    nomada
    Participant

    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?

    #95109
    Mahesh
    Keymaster

    @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,
    Mahesh

    #95142
    nomada
    Participant

    Thanx 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?

    #95189
    Mahesh
    Keymaster

    @nomada: Sorry, my bad, its .nav-primary. Can you please explain in details what you want to do by change template.

    Regards,
    Mahesh

    #95266
    nomada
    Participant

    The 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.

    #95276
    Mahesh
    Keymaster

    @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,
    Mahesh

    #97477
    Dawn
    Participant

    Good 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,
    Dawn

    #97513
    Mahesh
    Keymaster

    @dawn: Please post in your site url.

    Regards,
    Mahesh

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Primary Menu don't disapear when selecting adding other Top Header Menu’ is closed to new replies.