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)
-   -   [SOLVED] Make only one page item bold? (http://forum.bytesforall.com/showthread.php?t=16365)

Danielwerner Dec 29, 2011 03:43 PM

[SOLVED] Make only one page item bold?
 
Hi,

Quick question: Is it possible to make only one menu item bold? I would like the last (the page with the highest "order" value) item in my page menu bold. And the rest normal as usual.

If yes; how do I do that? :)

Kind regards,
Daniel

juggledad Dec 29, 2011 04:00 PM

while there is a psuedo class for the first child, alas there is not for the last child.
If the menu is static on all pages, you could use the page item id in the css to select it

Danielwerner Dec 29, 2011 04:56 PM

Yep, it's static. :) Say, what is the css-code for that?

juggledad Dec 29, 2011 05:43 PM

HTML Code:

.page-item-nn {.....}

Danielwerner Dec 29, 2011 06:07 PM

Hmm, can't get it to work. I'm a newbie at css and stuff. Could you please specify the whole thing which I need to add in css inserts?

Right now I added

HTML Code:

.page-item-5698 {
font-weight: bold;
}

where 5698 is the post id of the page.

juggledad Dec 30, 2011 07:54 AM

You need to use
HTML Code:

.page-item-5698 a span {color: #00ffff;}
this will change it blue - put the CSS you want in place of the color...

Danielwerner Dec 30, 2011 01:04 PM

Thanks, works like a charm!


All times are GMT -6. The time now is 10:31 PM.

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