-
AuthorPosts
-
July 3, 2014 at 2:56 pm #64680
Hello,
I’m trying to change the hover colour of my accordion titles to white but it’s not taking (changes to dark blue on hover).
I think some of my accordion CSS is causing the problem.
Site: http://staging5.yasemingreenscapes.ca/services/ (bottom of page).
Current CSS:
/*Background colour accordion in collapsed state*/
.x-accordion-heading .x-accordion-toggle.collapsed
{ background-color: #00a8c6; }/*Background colour accordion in open state*/
.x-accordion-heading .x-accordion-toggle {color: #fff; background-color: #00a8c6; }
/*Background colour of accordion in open state & font*/
.x-accordion-inner {
color: #fff;
background-color: #00a8c6;
}/*Hover colour for accordion*/
.x-accordion-heading .x-accordion-toggle:hover { colour:#ffffff;
}/*Title colour for accordion*/
.x-accordion-heading .x-accordion-toggle {
color: #aee239;
}Thanks,
CasperJuly 4, 2014 at 1:17 pm #65040Hi Casper,
Thank you for writing in!
The problem is in your custom CSS, the spelling of “color” property is incorrect. Please replace the following CSS code:
.x-accordion-heading .x-accordion-toggle:hover { colour:#ffffff; }
With:
.x-accordion-heading .x-accordion-toggle:hover { color:#ffffff; }
Hope this helps. If you face any issue, please let us know. We’ll be happy to assist.
Thank you.
July 4, 2014 at 2:12 pm #65050Thanks that did the trick.
Canadian spelling habit 🙂Cheers,
CasperJuly 5, 2014 at 3:14 pm #65311Great to hear that it solved the problem!
Please let us know if we can help you with anything else 🙂
Thank you.
Have a nice day!October 17, 2014 at 5:39 am #126972Integrity light with child theme on local server. (X ver 2.6, Shortcodes ver 2.4.0. Have validated, but cannot deactivate 2.4.0 or upgrade to 2.5.0)
I want to change the background colour of a single accordion in its unexpanded state. The code I am using is:
.x-accordion-heading .x-accordion-toggle.collapsed {
background-color: darkgray !important;
}It doesn’t work from the child theme (cache has been refreshed).
It doesn’t work from the Accordion CSS entry field in VC mode. (Entered as “background-color: darkgray !important;”)Inspecting the element, it seems that the colour is still being determined by the parent theme.
Where does this code need to be placed to make it work please? (Advice on updating shortcodes would also be appreciated.)
Thank you.
October 17, 2014 at 9:10 am #127109Hi there,
Automatic updates added to X from version 2.5.0 or higher,Please update your theme and plugin manually referring to http://theme.co/x/member/kb/updating-your-theme-and-plugins/.So you’ll be able to use automatic updates for the next release.
Actually you target the wrong element that’s why you can’t see the result
Try this CSS to makes it work:a.x-accordion-toggle.collapsed { background-color: darkgray !important; }
Hope it helps.
October 17, 2014 at 5:14 pm #127376Thank you for your response.
The only way the code worked was entering it in the Customizer Custom CSS. Is there a reason it doesn’t work from the child style.css? I would like to keep all these changes in one place, if possible.
Upgrade to shortcodes was fine.
Thanks again.
October 17, 2014 at 9:00 pm #127450Hi there,
Did you activate the child theme ? It should work on the child theme’s style-sheet as well. Can you provide us with a URL to your site, so that we can investigate for a possible issue.
Thanks!
October 17, 2014 at 9:16 pm #127455Child theme is active – contains “style.css” and “functions.php”. Sorry, I can’t give you a URL as this is still on a local server.
Is the code entry for the child “style.css” exactly the same as provided above?
If so, perhaps I will have sort this out when it goes live.
October 18, 2014 at 8:02 am #127590Hi there,
Yes the code is the same.
Please let us know when you site is available so we can check it.October 18, 2014 at 4:12 pm #127736Thank you very much for your help. At the rate I’m going trying to get my site working, you might not see it online in your lifetime.
October 18, 2014 at 9:44 pm #127828You’re welcome.
-
AuthorPosts