• Resolved chaphi90

    (@chaphi90)


    Hi,

    I am using a menu plug in and the original nav menu is still there.
    I am using a custom header on all other pages to hide it currently, but I would like to disable the menu option. I have linked a test page without the customer that you can see what I mean. 2 menu buttons, one with my plugin and the other the built in one from the theme.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello,

    Add the below code to the fucntions.php file of the child theme to remove the navigation –

    function prefix_remove_nav( $return ) {
        $return = false;
        return $return;
    }
    add_filter( 'ocean_display_navigation', 'prefix_remove_nav' );
    Thread Starter chaphi90

    (@chaphi90)

    Hi!

    Thanks for the code.
    I did add it the the functions.php file and it did not remove the nav menu.
    Any other suggestions?

    Thread Starter chaphi90

    (@chaphi90)

    Is there anyway to do it with css code?
    I want to remove the nav menu button without removing the header.

    The above code should work. Try the below CSS code to hide it –

    div#site-navigation-wrap {
        display: none;
    }
    Thread Starter chaphi90

    (@chaphi90)

    Amazing, this worked beautifully!!
    Thank you so much!!!!!!!

    Thread Starter chaphi90

    (@chaphi90)

    Thanks again

    You’re welcome!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Remove nav menu’ is closed to new replies.