Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Page & Category Menu Bars (http://forum.bytesforall.com/forumdisplay.php?f=10)
-   -   Bold Just One Menu Item (http://forum.bytesforall.com/showthread.php?t=17404)

bswb97 Apr 25, 2012 03:10 PM

Bold Just One Menu Item
 
I'm trying to bold just a single item on my page menu. I thought this would work:

div#menu-item-25 ul.rMenu li a:link,
div#menu-item-25 ul.rMenu li a:visited,
div#menu-item-25 ul.rMenu li a:hover,
div#menu-item-25 ul.rMenu li a:active,
div#menu-item-25 ul.rMenu li {
font-weight: bold !important;
}

But it's not taking. I've also tried these:

div#menu-item-25 body {
font-weight: bold !important;
}

li#menu-item-25.menu-item.menu-item-type-post_type.menu-item-object-page.menu-item-25 {
font-weight: bold !important;
}

Any thoughts?

juggledad Apr 25, 2012 07:32 PM

what release of Atahualpa and WP?
What is the url showing an example?

bswb97 Apr 25, 2012 08:11 PM

www.pearlproject.org

WP 3.3.2
Ata 3.7.3

lmilesw Apr 25, 2012 08:38 PM

Here is what I came up with using Firebug
HTML Code:

#menu-item-25 a {
    font-weight: bold !important;
}


bswb97 Apr 26, 2012 09:10 AM

That works, thanks! For future reference, any idea why that one worked over the above items? Didn't the a element get called out in the one with the different states?

lmilesw Apr 26, 2012 09:45 AM

You had your selectors in sort of reverse order and the menu-item-25 isn't a div. This would work as well. I just paired it down to the id since that only targeted the one item.
HTML Code:

ul.rMenu li#menu-item-25 a {
font-weight: bold !important;
}

If you want all the states to be the same you just need to us a or a:link. a:hover etc would be for when you want the hover state to be different for instance.

I like your site by the way... and the message. My mother-in-law and sister-in-law (46) died of lung cancer. My sister-in-law smoked 3 packs a day.


All times are GMT -6. The time now is 05:09 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.