-
AuthorPosts
-
January 20, 2016 at 12:59 pm #755452
Hi,
I’m using WP 4.4.1.
1) I’m a beginner and would like the CSS short code for accordion to enter into the customizer.
”Alarm” : color: #231F20; Arial 16
Hover on ”Alarm” (not the container) : #1893C8
Container transparent, no borderLittle cross: color: #BF3693
”text inside the box”: color: #DD261D; Arial 10
2) How do customize differently accordions in different sections?
Thanks for you help!
January 20, 2016 at 7:27 pm #756013Hi 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.
Cheers!
January 21, 2016 at 3:58 am #756608This reply has been marked as private.January 21, 2016 at 6:19 am #756765Hi Elise,
Thanks for updating the thread!
This requires custom development, while that is outside the scope of support, I could point you in the right direction with the understanding that it would ultimately be your responsibility to take it from here.
To style accordions differently, you can add unique CSS classes to them, e.g., accordion-1 under Class field of its settings (see: http://prntscr.com/7qeolc).
For the “Alarm” accordion, after adding the class accordion-1 , add following CSS under Custom > CSS in the Customizer:
.accordion-1 .x-accordion-group { border: none; } .accordion-1 .x-accordion-heading .x-accordion-toggle { color: #231F20; font-family: Arial, Sans-serif; font-size: 16px; background-color: transparent; } .accordion-1 .x-accordion-heading .x-accordion-toggle:hover { background-color: transparent; color: #1893C8; } .accordion-1 .x-accordion-heading .x-accordion-toggle:before, .accordion-1 .x-accordion-heading .x-accordion-toggle:hover:before { color: #BF3693; } .accordion-1 .x-accordion-inner { color: #DD261D; font-family: Arial, Sans-serif; font-size: 10px; border: none; }
Thank you!
January 21, 2016 at 7:25 am #756841Thanks guys, it works! You are great 😉
Another question : I would like to reduce the space between the icon and the accordion.
Can we add another Class to an element that has already a class?In that case, what would be best?
Thanks
January 21, 2016 at 7:52 am #756861Another thing, how do I reduce the space between the first and second line? Between ”dental” and ”applications”.
Thanks!
January 21, 2016 at 12:00 pm #757244Hi there,
Thanks for writing in! You can add this under Custom > CSS in the Customizer.
.accordion-1 .x-accordion-heading .x-accordion-toggle { line-height: 30px; }
Hope this helps.
Cheers!
January 21, 2016 at 12:37 pm #757301Hi,
it doesn’t work.
Here is the entire CSS code into the customizer
.accordion-1 .x-accordion-group {
border: none;
}
.accordion-1 .x-accordion-heading .x-accordion-toggle {
color: #231F20;
font-family: Lato, Sans-serif;
font-size: 30px;
background-color: transparent;
}.accordion-1 .x-accordion-heading .x-accordion-toggle:hover {
background-color: transparent;
color: #1893C8;
}.accordion-1 .x-accordion-heading .x-accordion-toggle:before,
.accordion-1 .x-accordion-heading .x-accordion-toggle:hover:before {
color: #BF3693;
}.accordion-1 .x-accordion-inner {
color: #231F20;
font-family: Lato, Sans-serif;
font-size: 18px;
border: none;.accordion-1 .x-accordion-heading .x-accordion-toggle {
line-height: 30px;
}Mbn class is applied to both the image and the accordion.
Thanks for your help!
January 21, 2016 at 8:34 pm #758039Hello There,
Please check this part of the CSS:
.accordion-1 .x-accordion-inner { color: #231F20; font-family: Lato, Sans-serif; font-size: 18px; border: none; .accordion-1 .x-accordion-heading .x-accordion-toggle { line-height: 30px; }
There’s missing closing bracket after this line:
border: none;
Update above CSS part to this:
.accordion-1 .x-accordion-inner { color: #231F20; font-family: Lato, Sans-serif; font-size: 18px; border: none; } .accordion-1 .x-accordion-heading .x-accordion-toggle { line-height: 30px; }
Add this to reduce Icon and accordion space:
.home .x-feature-box-graphic { margin-bottom: 0 !important; }
Hope this helps.
January 22, 2016 at 4:23 am #758682Perfect! Thanks a lot guys, you deserve to be considered as the BEST THEME EVER!
January 22, 2016 at 6:42 am #758832You’re welcome and thank you for your kind words! 🙂
-
AuthorPosts