How to Customize the Thesis Navigation Bar

by John Ankarström on May 23, 2009

in Events, How To, Themes

Customize Navigation Bar in Thesis

As you can see, my navigation bar isn’t the original one. So, this post shows how to customize the navigation bar like I did. This is valid CSS, but with 2 warnings. This is based on the kristarella.com code, but works better.

All you have to do is insert this in the custom.css file. This file is located under wp-content/themes/thesis-15/custom. Here’s the code:

.custom ul#tabs li {background:#909090;}
.custom ul#tabs li.rss {background:none;}
.custom ul#tabs li.current_page_item, .custom ul#tabs li.current-cat {background:#767676;}
.custom ul#tabs li.rss a:hover {
text-decoration: underline;
background: url(http://wpresser.com/wp-content/themes/thesis/images/icon-rss.gif) no-repeat;
background-position: right;}
.custom ul#tabs li a:hover {text-decoration:none; background:#686868;}
.custom ul#tabs li.current_page_item a:hover {text-decoration:none; background:#686868;}
.custom ul#tabs li.current-cat a:hover {text-decoration:none; background:#686868;}

Replace http://wpresser.com with your own web address.
The .custom tabs li styling will set the standard background color of the tabs not active or hovering. Feel free to change all colours.

Then what makes this stands out from the crowd? In every other guides I’ve found to add similar functionality, the Subscribtion-button also gets the background, and the little RSS-icon disappears when hovering! The styling of my .custom ul#tabs li.rss and .custom ul#tabs li.rss a:hover solves this. The first one, makes so the tab background doesn’t affect the Subscribe-button. The second one makes so the Subscribe-button will instead use the RSS-icon as background when hovering, it’ll be aligned to right, and the text-decoration is set to underline. Of course you can change this too, but I like it this way.

Spread some love:
  • Digg
  • StumbleUpon
  • Tipd
  • del.icio.us
  • Twitter
  • Facebook
  • Tumblr
  • Ping.fm
  • Google Bookmarks
  • Technorati
  • E-mail this story to a friend!
  • RSS

{ 1 trackback }

60 Wonderful And Helpful Thesis Customization Tutorials - Cash-Bandit.com
September 13, 2009 at 4:04 pm

{ 5 comments… read them below or add one }

1 J.Backlund May 23, 2009 at 10:50 pm

Great information for every Thesis owner… It’s nice to see a customized version of Thesis!

Looking forward to see more info about how to customize the Thesis theme for WordPress!

Reply

2 Surender Sharma September 14, 2009 at 9:37 pm

Thesis is one of the best wp theme and using by thousands of probloggers like Darren,Brain,Chris and you.

Reply

3 Frederik September 15, 2009 at 6:36 pm

Thanks John! I was looking for this information for some time. I didn’t realize to put the ID behind my UL statement, so it did not work at all :-) Now it does. I’m looking forward to more of your stuff and tweaks…

Frederik

Reply

4 Tinh October 30, 2009 at 3:44 am

Thanks for sharing this. It is worth trying in my blog too

Reply

5 Senthil Ramesh November 29, 2009 at 3:22 pm

Hey I would like to seperate the category and pages from the the Nav menu. Like, I want to have the links for pages above Header and links for categories below the header image. Is this possible. I have searched a lot but not able to find. Please help.

Reply

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Previous post: WordPress Plugin: Align RSS Images

Next post: Insert feed footer with WordPress Plugin CopyFeed