Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Flexform › Accordion questions
New Landing › How can we help? › Themeforest Theme Support › Flexform › Accordion questions
Tagged: accordion, cannot, change, changing, color, css, custom, following, Font, header, new, space, spacing, text, used, view
- This topic has 10 replies, 5 voices, and was last updated 10 years by Swift Ideas – Ed.
-
Posted in: Flexform
-
June 10, 2013 at 9:53 pm #7755
Hi, I jst cannot succeed in changing accordions in 2 characteristics:
1 – change the color and font weight of the accordion heading
2 – change the spacing inside the accordion so that the space is minimized (no gap or spacing below the text)I used the following custom css, but without success:
Problem 1:
I defined a new class which I gave to the header of the accordion in the swiftbuilder classic view code:.acc_grey {
font-weight:bold !important;
}–> no effect at all
Problem 2:
.wpb_accordion .ui-accordion .ui-accordion-content{
padding: 0 15px 0 15px !important;
}–> does not eliminate the spacing below the text as much as I want it to
Is there another wrapper around the text or how to solve this issue?What to do…
Thanks for your assistance.
June 10, 2013 at 9:55 pm #7756This reply has been marked as private.June 10, 2013 at 9:59 pm #7758This reply has been marked as private.June 13, 2013 at 4:16 pm #8131Hi,
Try this:
.ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #FFFFFF !important; font-weight: bold; }
Regards,
————————————————————————————————————Cosmin – Support
June 17, 2013 at 5:33 pm #8436QUESTION 1:
Thanks for your info. The code changed the color of all the accordions. How can I do this for a particular accordion on a site as I have two accordions on many sites and want them to have different colors?QUESTION 2:
How can I change the background of the accordion text section?QUESTION 3:
And a third question: How to eliminate the spacing after the end of the text section.
I used:.wpb_accordion .ui-accordion .ui-accordion-content{
padding: 0 15px 0 15px !important;
}but, it does not eliminate the spacing below the text as much as I want it to
Is there another wrapper around the text or how to solve this issue?June 18, 2013 at 2:38 pm #8553Hi,
1) You would need to add an extra class to your accordion element and add my code again, with the extra class in front. Say the extra class is acc-color-1, you would do this:
.acc-color-1 .ui-state-default a, .acc-color-1 .ui-state-default a:link, .acc-color-1 .ui-state-default a:visited { color: #FFFFFF !important; font-weight: bold; }
Repeat for each different color you want to add.
2) I see you already added an extra class and a custom background color (acc-black ? )
3) Add mb0 as an extra class.
Regards,
————————————————————————————————————Cosmin – Support
June 18, 2013 at 2:54 pm #8563Dear Cosmin,
Thanks for your reply.
I added the class acc-black. I want the background of the accordion tab to be black for the accordion with this class. So, I tried to add:
.acc-black .wpb_accordion, .acc-black .ui-accordion, .acc-black .ui-accordion-header {
background: #000000 !important;
}But, it’s not working.
So, what am I doing wrong?
June 18, 2013 at 9:39 pm #8614It seems to be working for me, it could’ve just been cache?
Thanks
BenJune 19, 2013 at 11:25 am #8665It’s working. Thanks!
November 16, 2013 at 10:27 am #31643hi,
i add
}
.ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited {
color: #FFFFFF !important;
font-weight: bold;
}
Everythink is ok, but when i click on the accordion the heading text color is alsow white – so what can i write into css ?November 18, 2013 at 7:07 pm #31962You can set the selected colour with the following custom css:
.ui-tabs .ui-tabs-nav li.ui-tabs-active a, .wpb_accordion .wpb_accordion_section > h3.ui-state-active a { color: #222; }
– Ed
-
Posted in: Flexform
You must be logged in and have valid license to reply to this topic.