Solved

remove top menu

Posted on 2014-04-19
5
319 Views
Last Modified: 2014-04-19
Hi,

How do I remove the horizontal menu as in the menu editor the menu is set to secondary menu only and not top primary menu?

http://mymrt.net/wordpress/

this didnt work either
.nav-menu
{
display:none;
}
0
Comment
Question by:jagguy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 35

Expert Comment

by:Dan Craciun
ID: 40010096
Try this:
#primary-navigation {display:none;}
0
 

Author Comment

by:jagguy
ID: 40010104
ok it works but why would this work and this
fail?

.nav-menu
{
display:none;
}
0
 
LVL 35

Expert Comment

by:Dan Craciun
ID: 40010109
Because you have this and it overrides your style, being a more specific rule:
.primary-navigation .nav-menu {
            border-bottom: 0;
            display: block;
      }

http://css-tricks.com/specifics-on-css-specificity/

This rule has a specificity of 20, while your rule had a specificity of 10.

http://specificity.keegan.st/

The rule I used has a specificity of 100.
0
 

Author Comment

by:jagguy
ID: 40010112
How would I be able to know this from using firebug?
0
 
LVL 35

Accepted Solution

by:
Dan Craciun earned 500 total points
ID: 40010113
Short answer: look for longer style names.

When you add a rule and some other rule is longer and it contains your rule name, that rule will be applied.

Another short answer: when hiding elements, go for IDs. They are always more specific than classes.
0

Featured Post

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…
The viewer will learn how to dynamically set the form action using jQuery.

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question