Tagged: x
-
AuthorPosts
-
April 19, 2016 at 5:07 pm #890849
logogloParticipantHi there, Im using this code:
.x-accordion .x-accordion-group:nth-child(2) .x-accordion-heading .x-accordion-toggle.collapsed {
background-color: #595757;
}But the hover color goes back to default…I want it to be the same grey when its collapsed.
thanks.
April 19, 2016 at 5:23 pm #890866
logogloParticipantAlso, it doesnt seam to collapse on a mobile or tablet device, can you check this please.
April 19, 2016 at 11:46 pm #891196
Prasant RaiModeratorHello There,
Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.
Thanks.
April 20, 2016 at 9:46 am #891902
logogloParticipantApril 20, 2016 at 10:02 pm #892859
LelyModeratorHi There,
Please update above CSS to this:
.x-accordion .x-accordion-group .x-accordion-heading .x-accordion-toggle.collapsed { background-color: #595757; }This
:nth-child(2)means that the CSS will be for the second headings only. Removing that will means it will be applied for every accordion heading.It seems working when I check in mobile. See attached screenshot.
Hope this helps.
April 21, 2016 at 10:38 am #893869
logogloParticipantBut I want each heading to have an alternative color, hence me using that code. The problem is when you click on the heading to bring down the accordion, the heading changes back to the default color, I need it to remain as the set color. So black, grey, black grey etc, but the open state to stay the same grey.
See the image I attached to explain..
April 22, 2016 at 12:54 am #894825
Nabeel AModeratorHi again,
To fix this, just add the following code in your Customizer via Appearance > Customize > Custom > Edit Global CSS:
.x-accordion .x-accordion-group:nth-child(2) .x-accordion-heading .x-accordion-toggle { background-color: #595757 !important; }Let us know how this goes!
April 22, 2016 at 12:22 pm #895642
logogloParticipantPerfect! thanks
April 23, 2016 at 5:40 am #896516
ChristopherModeratorYou’re welcome.
April 23, 2016 at 5:46 am #896520
ThaiModeratorYou’re most welcome 🙂
If you need anything else please let us know.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-890849 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
