Comment on WordPress Custom Nav Menu by SEO Dave.
To keep the CSS used to a minimum the two menus share the same rules.
If you wanted the secondary navigation menu to use a different rule set you’d need to create a second rule set.
There’s CSS classes specific to the two different ways to use the secondary nav menu:
.header_nav_box_top – For when the secondary WP nav menu isn’t fixed at the top and
.header_nav_box_top_fix – For when the secondary WP nav menu is fixed.
Depending on which version of the secondary menu you use (fixed or not) determines which of the two you’d use. I’ll use fixed for the example.
Find the general CSS rules you want to change for the secondary nav menu and make a copy. Within the colour CSS file you are using are a set of CSS rules starting .srumenu these are the menu CSS rules.
Below is one of the CSS rules.
.srumenu { background-color: #404040; background: -webkit-gradient(linear, left top, left bottom, from(#404040), to(#282828)); background: -webkit-linear-gradient(top, #404040, #282828); background: -moz-linear-gradient(top, #404040, #282828); background: -ms-linear-gradient(top, #404040 0%, #282828 100%); background: -o-linear-gradient(top, #404040, #282828); background: linear-gradient(top, #404040, #282828); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#404040', endColorstr='#282828'); clear: both; font: normal normal normal 90%/200% Arial, Helvetica, sans-serif; margin: 0 auto; }
Simply making a copy of a rule and adding the .header_nav_box_top_fix to the rule will mean it only works for the fixed version of the secondary menu.
.header_nav_box_top_fix .srumenu { background-color: #404040; background: -webkit-gradient(linear, left top, left bottom, from(#404040), to(#282828)); background: -webkit-linear-gradient(top, #404040, #282828); background: -moz-linear-gradient(top, #404040, #282828); background: -ms-linear-gradient(top, #404040 0%, #282828 100%); background: -o-linear-gradient(top, #404040, #282828); background: linear-gradient(top, #404040, #282828); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#404040', endColorstr='#282828'); clear: both; font: normal normal normal 90%/200% Arial, Helvetica, sans-serif; margin: 0 auto; }
By using “.header_nav_box_top_fix .srumenu” it means that CSS rule will look for an element using the .srmenu class that’s also within an element with the .header_nav_box_top_fix class.
So the original CSS rule is general, acts on all instances of .srumenu and the modified version only acts on the .srumenu that’s also within an element with class .header_nav_box_top_fix.
You could either make a partial copy and modify the rules you want to change or make an entire copy of all the CSS rules related to the menu.
If all you wanted was smaller text for example, but the same colours you only need to copy and modify the bit of the rule related to font size:
.header_nav_box_top_fix .srumenu { font: normal normal normal 80%/200% Arial, Helvetica, sans-serif; }
The above would have the secondary nav menu the same as the other menu, except the font size is smaller.
David
More Comments by SEO Dave
WordPress Navigation Menu
Cusomizing WordPress Themes
Since you’ve used the older Stallion Responsive code no quick fix.
The new HTML and CSS code for Stallion Responsive 8.1 is significantly better than the 8.0 code from a performance perspective.
You’ve lost your mobile menu because I stripped out the …
Continue Reading WordPress Navigation Menu Tutorial
WordPress Navigation Menu
Customize WordPress Theme CSS File
Hi Mark,
Yes the Stallion Responsive 8.1 menu CSS and corresponding HTML code has been changed a LOT to remove the need for Jquery and other javascript to generate the mobile version of the menu, means a major performance improvement as …
Continue Reading WordPress Navigation Menu Tutorial
WordPress Navigation Menu
WordPress Custom Menus
The WordPress Custom Menu is unlikely to cause a home page 404 error page.
Not seen a home page error before.
Have you set a “A static page (select below)” under Settings >> Reading?
If so does the static page exist? Not sure …
Continue Reading WordPress Navigation Menu Tutorial
WordPress Navigation Menu
WordPress Theme Development Supported WP Versions
The above error is due to running an old version of WordPress, get_post_format() was added in WordPress 3.1 and Stallion uses the latest WordPress code. So your site must be running WordPress 3.0.* or earlier.
If you update to the latest …
Continue Reading WordPress Navigation Menu Tutorial
WordPress Navigation Menu
Jetpack WordPress Plugin Jquery Conflict
Tested Jetpack and it is conflicting with the Stallion Featured Posts Slider javascript.
Think Jetpack is enqueing Jquery since I’m finding
<script type='text/javascript' src='http://talian-theme.co.uk/wp-includes/js/jquery/jquery.js?ver=1.7.1'></script>
Within the footer area of the test site, jquery-1.7.1.min.js is loaded by the slider and I’m assuming this is …
Continue Reading WordPress Navigation Menu Tutorial
WordPress Navigation Menu
WordPress Featured Posts Slider
Looking at the code output from view source the output is as I’d expect, compared it to a development site with the same Colour scheme, layout and WordPress featured posts slider settings and the code is correct.
The code is there, …
Continue Reading WordPress Navigation Menu Tutorial
WordPress Navigation Menu
WordPress Featured Thumbnail
Check if the Stallion WordPress Featured Thumbnail for your posts exist, currently some you are linking to doesn’t exist.
David …
Continue Reading WordPress Navigation Menu Tutorial
WordPress Navigation Menu
WordPress Plugins I Use on this Blog
I write in a technical way which must be difficult for those with English as a second language. Are you using the Stallion Google Translation widget on the right menu which will translate the entire site to other languages, does …
Continue Reading WordPress Navigation Menu Tutorial
WordPress Navigation Menu
WordPress Custom Menus
Do you mean the drop down menu just below the header area starting with the “Stallion Theme Support” link?
If so that’s built using WordPress custom menus, combination of WordPress core and Stallion options.
See WordPress Menu Manager Stallion Theme Feature
Need to …
Continue Reading WordPress Navigation Menu Tutorial
WordPress Navigation Menu
WP Nav Menu
I wasn’t able to incorporate the automated home page link using the name of the site into the new style WordPress navigation menu (which is available in Stallion 6, but not Talian 5).
There’s two ways to achieve this link.
You can …
Continue Reading WordPress Navigation Menu Tutorial