Tagged: x
-
AuthorPosts
-
November 12, 2016 at 1:43 pm #1254589
Josh HaylesParticipantHi there! How do I change the background color for accordions? I want the background to be a pure white with a thin black border. Also, I have a child theme in place so I want to make sure it reflects there.
November 12, 2016 at 10:33 pm #1254932
Rue NelModeratorHello There,
Thanks for writing in! To change the background color for accordions and make the background color to be in pure white with a thin black border, please add the following css code in your child themeโs style.css
.x-accordion .x-accordion-inner { background-color: #fff; border: solid 1px #000; }Please let us know if this works out for you.
November 13, 2016 at 6:54 am #1255176
Josh HaylesParticipantThank you! Is there a preference for where that code should be placed; at the top, or very bottom?
November 13, 2016 at 7:08 am #1255179
ThaiModeratorHi There,
You should put that code at the bottom of the style.css file.
Regards!
November 13, 2016 at 7:37 am #1255201
Josh HaylesParticipantIt did not work. You can see the accordion on this page: https://geniushomeowners.com/activity-demo/
I pasted the code at the bottom of my style.css sheet. See screenshot.
Also, I will need the accordion’s title text to be black instead of white. How do you add that to the code?
November 13, 2016 at 8:04 am #1255209
ThaiModeratorHi There,
Please delete the previous CSS and add the following CSS instead:
.x-accordion-heading .x-accordion-toggle { background-color: #fff !important; border: 1px solid #000; color: #000; } .x-accordion-heading .x-accordion-toggle:hover { color: #989696; } .x-accordion-heading .x-accordion-toggle:before { color: #000 !important; } .x-accordion .x-accordion-inner { background-color: #fff; border: solid 1px #000; border-top: none; }Hope it helps ๐
November 13, 2016 at 8:38 am #1255219
Josh HaylesParticipantThe changes look right on mobile but they aren’t reflecting on desktop. I flushed my cache. Do they look right on your desktop version?
November 13, 2016 at 8:50 am #1255229
ThaiModeratorHey There,
It looks fine on my end:
http://i.imgur.com/DJ9bRjw.png
Please test in the incognito mode.
Thanks.
November 13, 2016 at 9:10 am #1255250
Josh HaylesParticipantLooks good! Thank you!
November 13, 2016 at 9:14 am #1255254
ThaiModeratorYou’re most welcome ๐
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1254589 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
