Solved

remove top menu

Posted on 2014-04-19
5
313 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
  • 3
  • 2
5 Comments
 
LVL 34

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 34

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 34

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

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 set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

786 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