Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Page & Category Menu Bars »

Give to each link of the menubar a different color.


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Oct 7, 2009, 10:58 AM
paolo-from-italy
 
6 posts · Aug 2009
Hi!
I'd like to give to each link of the menubar a different color.
How can I do?
Please...!
  #2  
Old Oct 7, 2009, 01:03 PM
aechean
 
7 posts · Oct 2009
Well, you could insert a custom jQuery javascript to alternate colors on the <ul> of the menu...

You would just have to make your selectors be every nth child = a certain color. Let me see if I can make this happen quick and I'll post it.

*EDIT*
Yeah, so, this will work, as long as you use the correct class selectors for the menu you want to change:

Code:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript">
	

$(document).ready(function() { 
						   $("li:eq(0)").css("color","blue");
						   $("li:eq(1)").css("color","black");
						   $("li:eq(2)").css("color","red");
						   });
    

</script>
The correct selector for the theme *should be* 'ul#rmenu2 li'...I think.

Last edited by aechean; Oct 7, 2009 at 01:18 PM. Reason: solution?
  #3  
Old Oct 7, 2009, 01:59 PM
paolo-from-italy
 
6 posts · Aug 2009
sorry but I don't understand...I'm newbie...
another help is possible?

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reply link changing color neocratus Comments, trackbacks & pings 3 Jul 11, 2010 01:49 PM
How change link color in sidebar? Spaceboy Sidebars & Widgets 9 Nov 5, 2009 06:23 PM
Trying to change link color on one page lilkush RSS, Feeds & Subscribing 2 Aug 11, 2009 03:02 PM
Help! I can't use my own image in the header and I'm about to give up!! spookyq Header configuration & styling 6 Jul 16, 2009 06:02 PM
can someone give me a tutorial how to create a theme like this falguni1 Header configuration & styling 0 Feb 27, 2009 11:23 AM


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


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