最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

menus - how to remove the top navigation bar or header top on wordpress website?

matteradmin9PV0评论

My website (bargainbosss) all of a sudden started displaying a navigation bar at the top of the website. I don't have that menu option checked, only a primary menu. I can't figure out how to remove this bar and it's driving me crazy. I just want the primary menu--the one underneath my logo. Does anyone have any suggestions on how I can remove this? Thank you in advance.

My website (bargainbosss) all of a sudden started displaying a navigation bar at the top of the website. I don't have that menu option checked, only a primary menu. I can't figure out how to remove this bar and it's driving me crazy. I just want the primary menu--the one underneath my logo. Does anyone have any suggestions on how I can remove this? Thank you in advance.

Share Improve this question asked Jan 26, 2018 at 14:35 bargainbosssbargainbosss 111 gold badge1 silver badge2 bronze badges 1
  • Can you add more detail? What theme are you using? Do you have any widgets turn on? Have you recently added or updated your plugins or theme? – phatskat Commented Jan 26, 2018 at 15:02
Add a comment  | 

1 Answer 1

Reset to default 1

Looks like the author didn't include the check for menu items before calling the top nav bar.

Two methods:

  1. Dashboard --> appearance --> customize --> Additional CSS add the following piece of code and save changes:

    #topnav {
      display:none;
    }
    
  2. Create a child theme and include this page neville\template-parts\partials\headers\header-tmpl-default.php. Make sure to remove the below line from the page you included in the child theme:

    add_action( 'neville__header_default', neville__header_default_top_nav',      20 );
    

Either one should work. However, I'd recommend the second method. Its always better to have a child theme while making changes to any theme.

Post a comment

comment list (0)

  1. No comments so far