Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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.


  #1  
Old Oct 7, 2009, 10:58 AM
paolo-from-italy
 
6 posts · Aug 2009
Give to each link of the menubar a different color.

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 03:10 AM.


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