-
AuthorPosts
-
October 1, 2015 at 1:18 pm #606842
You are welcome!
Glad that it helped. Feel free to let us know if you face any other issue. We’ll be happy to assist you.
Thanks for using X.
Cheers!
April 30, 2016 at 1:58 pm #907131Hi, I’ve read through the post above and still can’t seem to figure out how to customize the text in the main text box of the accordions. Currently, it’s all bold automatically and I don’t want the double spacing between paragraphs/lines. Any help appreciated. Thanks.
May 1, 2016 at 4:33 am #907640Hello 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.
Thank you.
May 1, 2016 at 7:42 am #907809This reply has been marked as private.May 1, 2016 at 10:03 am #907892Hi @sstacyb,
Please add the following CSS:
.x-accordion-inner p { margin-bottom: 0; font-weight: normal; }
Hope it helps 🙂
May 1, 2016 at 10:22 am #907916Thanks! Really dumb question, but just want to be sure I’m doing it right. Since I’m using cornerstone for the post, do I go to the settings icon and then choose “Custom CSS” and add it there?
May 1, 2016 at 10:24 am #907920It appears to have fixed the ‘all bold’ issue, but the paragraph spacing is still double-spaced instead of single-spaced. Can you help me with the code for that?
May 1, 2016 at 8:08 pm #908395Hi @sstacyb,
Yes, you can add it in Settings Tab > Custom CSS.
To give you a clear idea, CSS added on Settings Tab > Custom CSS will be implemented on that specific page only. On the other hand, if you add those CSS in Appearance > Customize > Custom > CSS, it will be sitewide which means it will affect all accordions on all other pages too.Please update above CSS to this:
.x-accordion-inner p{ margin-bottom:3px !important; /*I add space between px and !important*/ font-weight:normal; line-height: 1.5; /* The space is coming from the default line height. Adjust 1.5 to your preferred spacing. It is 1.8 by default*/ }
Hope this helps.
June 9, 2016 at 1:46 am #1033501Hi I need to align the titles of my accordion
I tried doingtext-align:justify; but since there is the + before the actual text the second line keeps aligning to that + icon on the left is the anyway to align it to the first line .
June 9, 2016 at 2:03 am #1033525Hi,
To fix it, you can add this under Custom > Edit Global CSS in the Customizer.
.x-accordion-heading .x-accordion-toggle { position:relative; padding-left:40px; } .x-accordion-heading .x-accordion-toggle:before { top:7px; left:10px; z-index:9999; position:absolute; }
You may change the top and left to adjust the position of the plus sign.
Hope that helps.
August 8, 2016 at 2:06 am #1121678hi
I am in a similar situation. I have been able to change the color of the accordion box to black and the text to white, but when clicked, I want it all to stay that color and it changes.
Here is what I have so far:
.x-accordion-heading .x-accordion-toggle {
background-color: #000000;
color: #FFFFFF;
}
.x-accordion-heading .x-accordion-toggle.collapsed {
background-color: #000000;
color: #FFFFFF;
}On collapsed, it is the same color codes as just toggle, yet it does not remain black background and white text.
cheers
August 8, 2016 at 2:10 am #1121686Thanks 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.
August 8, 2016 at 2:15 am #1121689apologies, it is feastthailand.com
cheers
August 8, 2016 at 2:32 am #1121705Hi there,
Please try this code :
.x-accordion-heading .x-accordion-toggle,.x-accordion-inner { background-color: #000; color: #fff; }
Hope it helps.
August 8, 2016 at 3:33 am #1121774Hi
Thanks for that, but no, I removed what I had above and input your code but that does not work. Instead it turns the collapsed body black with the text white, but then makes the accordion heading white text and body.
I need the look it has when closed to be the same as when it is open, black body and white text
cheers
-
AuthorPosts