How to Change the Style of an Individual Menu Item
So you want to change the look of only one item on one of your WordPress menus? Luckily this is very simple with CSS.
Many Themes allow for the changing of overall menu styling such as the background color, font style, border width etc. Very few (if any) allow for the styling of individual menu items:
Tutorial: Change the look of a single menu item
Follow these few steps:
- Identify the id of the menu-item you want to customize (in Firebug for Firefox alternate click whilst hovering your mouse over the menu item you want to change and select ‘Inspect Element’).
- Save the following to the end of your active Theme stylesheet (style.css) but obviously changing the id to your requirements:
#menu-item-391 a{ color: #00EE00 !important; }
Note: add border, font or whatever other CSS elements you want to the code as above. You could also add the CSS above as embedded CSS into the HTML <head> section.




Sep 06, 2011 @ 23:44:09
if you are using custom menus, I think is better to define a different class for that item, and apply the CSS. For example:
/*
Class .first-item defined through WP Menu session.
#menu-about is WP id for that item.
*/
#menu-about li.first-item a {
border-left: none !important;
font-size: 20px;
margin: 0;
padding: 0 12px;
color: #042152;
}
This way gives you the chance to just apply this CSS in case your About menu’s ID changes (i.e: new install, using theme on a different install, acidental removal).
Sep 08, 2011 @ 08:14:47
Thanks Ricardo
Feb 26, 2012 @ 06:44:06
Gary,
Thank you so much for the tut. I’ve been looking everywhere for this!!!
However, I am having major trouble.
#menu-item-35 a{
color: #F2CE52 !important;
font-weight: bold;
margin-left: 3px;
}
I am pulling my hair out!!!
Please help!!!
Feb 27, 2012 @ 18:06:46
Hi Patrick,
Please email me exactly what you are trying to achieve.
Thanks
Apr 13, 2012 @ 08:54:00
Tried your tip with no luck – trying to change my last menu item “Store” to a different color (maybe red) & Bold…any tips would be awesome!
Apr 13, 2012 @ 13:15:23
Hi JoJo,
The following CSS should work for you:
.page-item-741 a {color: red !important;
font-weight: 900;
}
Apr 14, 2012 @ 09:51:37
That works great – except it will also have submenus and I don’t want those to be red
Apr 15, 2012 @ 07:17:26
@Jolene, find the class of each submenu item and then define the colour for each submenu class using CSS.