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 »

Category Menu create different BG colours for hover


  #1  
Old Jul 24, 2012, 06:13 AM
jasonheller
 
7 posts · Jul 2012
Hello forum. Firstly I'd just like to say that this is an amazing theme and this forum is an incredible resource!

OK, I cannot figure out the code (I am new to CSS) to change the hover colour of the Category Menu. I have five menu links, each with a different BG colour and I wish to have the link use a variation of the colour for the item for the hover and active page, if this makes sense. The site isn't live yet so I don't have a link.

This is the code so far for the five different menu links:

li.page-item-2 {
background: #BCF5A9 !important;
}
li.page-item-19{
background: #A9E2F3 !important;
}
li.page-item-12 {
background: #F78181 !important;
}
li.page-item-24 {
background: #5858FA !important;
}
li.page-item-26 {
background: #F2F5A9 !important;
}

I am using Atahualpa 3.7.7 and WP 3.4.1

Any help appreciated!! I'm sure it will be an easy fix.
Thanks.
  #2  
Old Jul 24, 2012, 06:41 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
do a google search using 'css psuedo-classes' and you should take a CSS tutorial (htmldog.com has a good one)
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Jul 24, 2012, 06:57 PM
jasonheller
 
7 posts · Jul 2012
thanks Juggledad. I have gone through some of those tutes and they are great, but my problem still is that I can't determine the rule to independently control five button links, each with different colours. In HTML I know it would be a matter of setting a class rule, but as I have to do this in CSS I am at a loss.
I assume I need to set the link parameters individually as in the code above for each element and each state, which makes sense and is fine. The problem I am having is I can't for the life of me work out how to group the sections together. Perhaps I am having a conflict with inline rules.
Any help appreciated.
  #4  
Old Jul 24, 2012, 07:02 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
you need to have another CSS selector for each menu item using the hover like
HTML Code:
li.page-item-2 a:hover {
background: #red !important;
}
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Jul 24, 2012, 07:08 PM
jasonheller
 
7 posts · Jul 2012
thanks again for your reply. I have tried this several times and I am still getting the default hover state (grey in this case). i am using the !important tag, but can't seem to override the default. I am just adding the CSS rules at the end of the Add CSS/HTML Inserts section. do I need to group the menu items in a div tag or something?
thanks.

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to create hover to image with link Viktoria Header configuration & styling 2 Jun 18, 2012 11:23 AM
[SOLVED] Background color:hover not working for 'category' items in menu 1 (page menu akg Center area post/pages 4 Sep 27, 2010 08:08 AM
How to Create a Title Category? lee07666 Page & Category Menu Bars 12 Sep 28, 2009 05:43 AM
Tag vs. Category hover links sonya Sidebars & Widgets 1 Jun 20, 2009 02:56 PM
footer float and side menu sub-pages colours Flukey Atahualpa 3 Wordpress theme 1 Apr 24, 2009 08:46 PM


All times are GMT -6. The time now is 06:56 AM.


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