Home › Forums › WordPress Themes – Premium › Circumference › Accordion Panels
- This topic has 7 replies, 17 voices, and was last updated 9 years, 8 months ago by
Judy Asman.
-
AuthorPosts
-
April 10, 2014 at 9:21 pm #15002
Judy Asman
ParticipantHi, Andre,
Thanks for including an accordion feature in this theme. I usually use a plugin but really like your built-in version, especially that we can change the colors of each panel heading.I’m customizing mine now. When you’re available, will you please let me know how I can delete the wide gap that appears between panel headings? I worked from the code you have in the demo but for some reason the spacing appeared on my site. http://64.78.29.189/wp/members/
Thank you!
April 10, 2014 at 11:22 pm #19644Sushil Adhikari
ModeratorAre you using a plugin that does grids or something? This I found:
#pg-65-0, .panel-grid-cell .panel { margin-bottom: 30px; }
The class .panel is adding 30px to each accordion panel in the theme’s code because mine has a class of .panel as well. I’m guessing I need to update the HTML snippet for the accordion code because I changed the class on mine to go from .panel to .cir-panel so it doesn’t conflict with plugins.
In your code, you can fix it by adding cir- to each of your panel’s class .panel
…becomes
April 11, 2014 at 1:02 am #19645Judy Asman
ParticipantThanks, Andre! That took care of that padding issue. :cheer:
I’ll look for the plugin that may be adding that extra panel styling. Meanwhile, now that the spacing issue is fixed, I notice that when I open one panel and click on the next one below it, that it is no longer closing the previous panel before opening the next one.
Can you please tell me what I need to adjust to fix this? My guess is it’s also in the div classes. Correct?
Thank you again 🙂
April 11, 2014 at 1:12 am #19646Sushil Adhikari
ModeratorIt will close if you click it again, but my guess something else is conflicting with the script so it doesn’t close when you click on another panel…more likely a plugin. The accordion I use is from Bootstrap but it uses jQuery (in this case jQuery that WordPress uses).
April 11, 2014 at 1:36 am #19649Judy Asman
ParticipantThanks — I’m going to look for the css style you mention above and see if I can deal with the issue that way. I checked all of my plugins but to no avail. I’m sure I’ll find it.
Thank you again for all of your help and hard work.
April 11, 2014 at 3:32 am #19655Judy Asman
ParticipantHi, Andre,
The good news is, I found the culprit. The good and bad news is that it was the Site Origin page builder plugin that was conflicting. The good news to this is that I prefer to use the classic page editor for this page and was going to switch out of page builder anyway.But I thought I’d give you a heads up in case you receive another question about this. I hope this helps.
Thanks again for everything!
April 11, 2014 at 4:25 am #19657Sushil Adhikari
ModeratorThanks for the information as it will help others who might experience the same thing.
April 11, 2014 at 6:05 am #15003Judy Asman
ParticipantYou are welcome!
-
AuthorPosts
- You must be logged in to reply to this topic.