You are here: Computer Video TutorialWordpress TutorialEditing WordPress 3- Background Menu Color
Due to regular updates on WP, if you look for Twenty Eleven theme modification or customization tutorial, first of all, first check this post. Thanks.

Editing WordPress 3- Background Menu Color

by Kimi on September 15, 2010

How we can change default black background of TwentyTen’s menu color to any colors you like by editing the stylesheet css file.


Alan asked this TwentyTen question
last week, and i have already uploaded video in YouTube but didn’t have time to create this wordpress post.


Video Tutorial and The steps:

To replace that default black color background, you have to edit the css file. But to be save, copy your TwentyTen’s files, so that if this default theme has updates, your modification files will stay.

1. In your dashboard, go to “Appearance” and “Editor”.

Appearance/Editor.
2. Scroll down, and find “stylesheet” file called, “style.css” file in the right bar.

style.css file is the red highlighted.

3. Click that style.css, and copy all the codes to html editor, i use notepad++. blog seo
4. In Notepad++ it is on the line 375. (see image)

Line 375 in Notepad++

Replace the code background:#000; with background:#990000;

Result: The background will be replaced with dark red color, but the hover will stay having default color (greyish). If you don’t want to change that color, then you can stop until here, but if you want to change that color, then you can continue reading or watch the tutorial ;)

The background of menu bar is changed, but not the hover.

5. To change the grey default hover menu background’s color, still in notepad++;

In line 423 Replace the code: background:#333 to background:#990000; (so the same color as no.4 above)

Line 423.

Also in line 432, replace the code background:#333 to background:red;

Line 432.

Result: Child menu has same background as the menu bar, and hover color is changed.

End result of TwentyTen background menu color.

Subscribe new tips via Email:

Was the post helpful? Share it to help others with:

{ 14 comments… read them below or add one }

Mike September 27, 2010 at 5:13 am

Hi,
Great site. I am wondering, is there a way to change the color or add an image to individual pages? Not the background, or menu, but the pages. I looked under Pages on the Wordpress Dashboard, but could not find a setting. I am creating a self hosted site.

Thanks

Reply

Dina September 27, 2010 at 1:22 pm

Hi Mike,

Yes there is a way by applying body class style. Article: http://www.nathanrice.net/blog/wordpress-2-8-and-the-body_class-function/

I have tried it, demo as result: kimi9.byethost32.com/about/ (if it is not yet suspended) ;)

Reply

Macnessa October 8, 2010 at 9:19 am

Thanks for this great post – I’ve just successfully changed the colours on a friends site – but now I want to know how to change the link text colour and the visited link text color, as well as the Text that is above the header in the 2010 theme. Do you have a post explaining that? Just point me in the right direction if you can – thanks! (I just need to know where in the stylesheet to find the right bits). There are also a couple of lines in the theme that are very bold and black and I’d like to change those as well.

Reply

Dina October 8, 2010 at 10:42 am

Hey Macnessa,

To change the color of link text, it depends on what you aim for. If you want to change the whole links including in sidebar text, then it is in style.css file which says, a link code.

Or if you want to change only text link in the content then we need to put a class div color, as well as the continue reading text link color.

I will make a video tutorial in the next days about it, subscribe if you like, it is free. Also please reminds me if i forget because i have many people ask some questions, I will be happy to be able to help!

Thanks for visiting.

Reply

Frank November 4, 2010 at 8:55 pm

Nice and easy good tutorial made it quick for me to change the navigation color and Im a newbee in WordPress.

Thanks :-)

Frank

Reply

Kimi November 5, 2010 at 8:43 am

Hello there Frank!

I am very glad that my tutorial was easy to follow and help you to change the navigation of your blog.

I was once newbie too, and like you, i love WordPress more each day.

Thanks for leaving nice words, Frank, talk to you soon.

Reply

Seho December 17, 2010 at 9:15 am

Hi, thanks, this is simple and helpful.

Now I’d like for the menu background colors to be different for each menu item. Possible?

Reply

Kimi December 17, 2010 at 10:09 am

Seho,

Yes, it is possible, see my “free services” tab, it has different style than the others by applying page id class.

Thanks for leaving the comment.

Reply

Seho December 18, 2010 at 4:28 am

I found this helpful today in targeting specific menu items:
designisphilosophy.com/tutorials/highlight-current-page-or-category/

Reply

Tor March 14, 2011 at 9:40 pm

Nice tutorial.

But how do you change the color of the black line above the header image?

Reply

Adis May 18, 2011 at 5:39 am

another awesome tutorial, got the menu changed but did not use “red” or wording for hoover, worked fine with #.
Still looking for a way to make rounded corners cross browser, used your other guide but works only in FF. Surprising most ppl still use IE :-(
anyways,
thank you again

Reply

Gary July 6, 2011 at 2:33 am

Thanks, I looked at several solutions to this that did not give full clear details of how to change the colours in plain English.Really annoying, thanks to your clear instructions I did this within 5 minutes.
Still not sure what shade is best though.

Reply

Keith September 13, 2011 at 12:39 pm

Thanks again for helping me out with such amazingly clear and easy to understand tutorials for Wordpress. You’re brilliant and it is a fantastically helpful site. Thank you so very much.
Kind regards
Keith

Reply

lisa November 29, 2011 at 10:51 pm

I am new to wordpress and I am trying to change the menu bar color and hover color. I have look in my css and can’t seem to figure it out.
Sincerely,
Lisa

Reply

Know better? Feedbacks, or Questions? Shoot! :-)

Please use a name instead of blog name or SEO stuff, otherwise it will be deleted right away.

About checkbox → See more my post:how to get rid of spam bots in wordpress post.

Thank you for visiting, you're always welcomed to be here again!

Previous post:

Next post: