Jump to content

Accordion in Badass Shortcodes not working properly

Recommended Posts


We are having issues the with accordion bad ass shortcode.  The proper accordion tab will not drop down when you click on it, only the first one will drop down each time no matter which one you click on.  Please see this test page we set up with an example of the problem http://www.lemonstripe.com/test/  Any help?

Share this post

Link to post
Share on other sites

Thank you!  That would be awesome!

Share this post

Link to post
Share on other sites

I found the problem is not a bug. you just need to change for each acordion name and the number. for example:

[ba-accordioncontent name="one" heading="P<strong>ersonal Training Packages</strong>" number="1" open="no"]

[ba-accordioncontent name="two" heading="P<strong>ersonal Training Packages</strong>" number="2" open="no"]


It took me a while but I really wanted to have the accordions stack and now they are working fine. I did upgrade to the new BA 2.0 work just the same.

Share this post

Link to post
Share on other sites

Glad to hear. Ya I was looking through and couldn't reproduce any bugs with it, and had no other reports, so figured it was a fluke or something wasn't quite setup right.

Something big is coming for DMS + photographers.



Nick Haskins & CO - New home for all of my PageLines Store products! 



Better DMS - News, Tutorials, and Tips



Share this post

Link to post
Share on other sites

Discovered a bug that prevents the content appearing within the container, for the accordion. If you use a percentage sign (as i did "50% of all plants...") in an accordion content then none of the accordian headings or content will appear. Took me ages to work out which one was causing the problem, by getting the accordian to work either side of groups of accordions until I found the culprit.


If I had HALF thought about it, then I wouldnt have wasted 50% of my time!

Chrome Developer tools - please use them. If you are not sure how, then it is easy to learn

Be inventive in your keyword search of the forum ie Navi > Navbar > menu > tabs > font > color. Your answer lies there somewhere!

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Similar Content

    • balfred1345
      By balfred1345
      I'm using El Sue's Accordion plugin  V1.7.4 in DMS2 using WP 4.4.1.
      I've created a set "Jobs2", and selected three accordions for the set. Here's a screen shot: http://screencast.com/t/MXYR9p1QoEAo
      The "accordion set to show" selection box no longer works, and all accordions I've made are showing instead of the set "Jobs2"  You can see this here: http://whub34.webhostinghub.com/~videoh6/cidev2.com/jobs-at-piepho/
      I've deactivated all plugins to see if there was a conflict, and there does not seem to be one, as the accordion selector problem persists even with plugins off. 
      Can you please tell me how to fix this so the "accordion set to show" selector works again?
    • lmillslagle
      By lmillslagle
      Hi, I'm using the accordion shortcode on this page: http://actonline.org/releases/
      And it works well for the first ten items and item 20, but it won't open 11-19.
      I checked the shortcodes and the non-working ones match the working ones (aside from the number and heading). I tried deactivating all plugins and still no dice. Any idea what the issue is?
    • webmktco
      By webmktco
      I'm hoping I can get some help w/ an accordion.
      Go to http://the-handyman-company.myddsweb.com/our-services/handyman-services/and you'll see some spacing issues:

      Here's the code (i've tried using the pl_raw tags):
      <div class="accordion" id="accordion"> <div class="accordion-group"> <div class="accordion-heading pl-contrast"> <a href="#collapse1" data-parent="#accordion" data-toggle="collapse" class="accordion-toggle" title="Handyman Jobs">Handyman Jobs</a> </div> <div class="accordion-body collapse in" id="collapse1"> <div class="accordion-inner"> <p>Whatever needs to be repaired or installed, an experienced handyman is only a phone call away. Bring us in for any odd jobs you have waiting on your to-do list.</p> <a class="btn btn-default btn-large" title="Handyman Jobs" href="http://the-handyman-company.myddsweb.com/our-services/handyman-services/handyman-jobs/">More about Handyman Jobs <i class="fa fa-chevron-circle-right"></i></a> </div> </div> </div> <div class="accordion-group"> <div class="accordion-heading pl-contrast"> <a href="#collapse2" data-parent="#accordion" data-toggle="collapse" class="accordion-toggle" title="Drywall">Drywall</a> </div> <div class="accordion-body collapse" id="collapse2"> <div class="accordion-inner"> <p>Call our team to repair any damages to your drywall and give your home a fresh and professional look. We are unmatched experts in drywall installation and repair.</p> <p class="center"><a class="btn btn-default btn-large margin-bottom" href="http://the-handyman-company.myddsweb.com/tampa/tampa-drywall-contractors/" title="Tampa Drywall Contractors">Tampa</a> <a class="btn btn-default btn-large margin-bottom" href="http://the-handyman-company.myddsweb.com/clearwater/drywall-contractors/">Clearwater</a> <a class="btn btn-default btn-large margin-bottom" href="http://the-handyman-company.myddsweb.com/orlando/drywall-contractors/">Orlando</a> <a class="btn btn-default btn-large margin-bottom" href="http://the-handyman-company.myddsweb.com/sarasota/drywall-contractors/">Sarasota</a> <a class="btn btn-default btn-large margin-bottom" href="http://the-handyman-company.myddsweb.com/ft-myers/drywall-contractors/">Ft. Myers</a> <a class="btn btn-default btn-large margin-bottom" href="http://the-handyman-company.myddsweb.com/melbourne/drywall-contractors/">Melbourne</a> <a class="btn btn-default btn-large margin-bottom" href="http://the-handyman-company.myddsweb.com/jacksonville/drywall-contractors/">Jacksonville</a></p> </div> </div> </div> <div class="accordion-group"> <div class="accordion-heading pl-contrast"> <a href="#collapse3" data-parent="#accordion" data-toggle="collapse" class="accordion-toggle" title="Carpentry">Carpentry</a> </div> <div class="accordion-body collapse" id="collapse3"> <div class="accordion-inner"> <p>When done correctly, carpentry should be able to endure through many years. Our professional work will not disappoint you. Call us for all of your building needs.</p> <p class="center"><a class="btn btn-default btn-large margin-bottom" href="http://the-handyman-company.myddsweb.com/tampa/carpenter" title="Tampa Carpenter">Tampa</a> <a class="btn btn-default btn-large margin-bottom" href="http://the-handyman-company.myddsweb.com/clearwater/carpenter" title="Clearwater Carpenter">Clearwater</a> <a class="btn btn-default btn-large margin-bottom" href="http://the-handyman-company.myddsweb.com/orlando/carpenter" title="Orlando Carpenter">Orlando</a> <a class="btn btn-default btn-large margin-bottom" href="http://the-handyman-company.myddsweb.com/sarasota/carpenter" title="Sarasota Carpenter">Sarasota</a> <a class="btn btn-default btn-large margin-bottom" href="http://the-handyman-company.myddsweb.com/ft-myers/carpenter" title="Ft. Myers Carpenter">Ft. Myers</a> <a class="btn btn-default btn-large margin-bottom" href="http://the-handyman-company.myddsweb.com/melbourne/carpenter" title="Melbourne Carpenter">Melbourne</a> <a class="btn btn-default btn-large margin-bottom" href="http://the-handyman-company.myddsweb.com/jacksonville/carpenter" title="Jacksonville Carpenter">Jacksonville</a></p> </div> </div> </div> <div class="accordion-group"> <div class="accordion-heading pl-contrast"> <a href="#collapse4" data-parent="#accordion" data-toggle="collapse" class="accordion-toggle" title="Soffit / Fascia">Soffit / Fascia</a> </div> <div class="accordion-body collapse" id="collapse4"> <div class="accordion-inner"> <p>Structural problems can make your home vulnerable to leaky roofs and unwelcome critters.  For quality you can trust, bring in our expert team to repair and maintain your soffits and fascia.</p> <a class="btn btn-default btn-large" title="Soffit / Fascia" href="http://the-handyman-company.myddsweb.com/our-services/handyman-services/soffit-fascia-and-decks/">More about Soffit / Fascia <i class="fa fa-chevron-circle-right"></i></a> </div> </div> </div>  <div class="accordion-group"> <div class="accordion-heading pl-contrast"> <a href="#collapse5" data-parent="#accordion" data-toggle="collapse" class="accordion-toggle" title="Doors &amp; Windows">Doors &amp; Windows</a> </div> <div class="accordion-body collapse" id="collapse5"> <div class="accordion-inner"> <p>Contact us when you need someone to reseal old doors and windows or install new ones. You can cut down on your power bill, bring extra sunlight into a dark room, or just give your home a new look.</p> <a class="btn btn-default btn-large" title="Doors &amp; Windows" href="http://the-handyman-company.myddsweb.com/our-services/handyman-services/doors-and-windows/">More about Doors &amp; Windows <i class="fa fa-chevron-circle-right"></i></a> </div> </div> </div>   <div class="accordion-group"> <div class="accordion-heading pl-contrast"> <a href="#collapse6" data-parent="#accordion" data-toggle="collapse" class="accordion-toggle" title="Tile Floors">Tile Floors</a> </div> <div class="accordion-body collapse" id="collapse6"> <div class="accordion-inner"> <p>For a durable and sophisticated look, consider ceramic tiles. Our professional installation will give you a floor that lasts for years to come.</p> <a class="btn btn-default btn-large" title="Tile Floors" href="http://the-handyman-company.myddsweb.com/our-services/handyman-services/tile-repair/">More about Tile Floors <i class="fa fa-chevron-circle-right"></i></a> </div> </div> </div> <div class="accordion-group"> <div class="accordion-heading pl-contrast"> <a href="#collapse7" data-parent="#accordion" data-toggle="collapse" class="accordion-toggle" title="Painting">Painting</a> </div> <div class="accordion-body collapse" id="collapse7"> <div class="accordion-inner"> <p>Even an older home can be livened up with well-maintained walls and a new coat of paint.</p> <a class="btn btn-default btn-large" title="Painting" href="http://the-handyman-company.myddsweb.com/our-services/handyman-services/painting-and-drywall/">More about Painting <i class="fa fa-chevron-circle-right"></i></a> </div> </div> </div> <div class="accordion-group"> <div class="accordion-heading pl-contrast"> <a href="#collapse8" data-parent="#accordion" data-toggle="collapse" class="accordion-toggle" title="Fencing">Fencing</a> </div> <div class="accordion-body collapse" id="collapse8"> <div class="accordion-inner"> <p>Whether you want a privacy fence in your backyard, front yard fencing that improves your curb appeal, or just a simple structure that keeps in pets or children, you can trust the quality you receive when we do your fencing.</p> <a class="btn btn-default btn-large" title="Fencing" href="http://the-handyman-company.myddsweb.com/our-services/handyman-services/carpentry-and-fencing/">More about Fencing <i class="fa fa-chevron-circle-right"></i></a> </div> </div> </div> <div class="accordion-group"> <div class="accordion-heading pl-contrast"> <a href="#collapse9" data-parent="#accordion" data-toggle="collapse" class="accordion-toggle" title="Shelving, Lighting &amp; Fans">Shelving, Lighting &amp; Fans</a> </div> <div class="accordion-body collapse" id="collapse9"> <div class="accordion-inner"> <p>Your bedroom, family room, or home office has a lot of potential, and we can turn your vision into a reality. Contact us about installing ceiling fans, shelves, or assembling new furniture and equipment.</p> <a class="btn btn-default btn-large" title="Shelving, Lighting &amp; Fans" href="http://the-handyman-company.myddsweb.com/our-services/handyman-services/lighting-and-fans/">More about Shelving, Lighting &amp; Fans <i class="fa fa-chevron-circle-right"></i></a> </div> </div> </div> </div>
    • jharri74
      By jharri74
      Hello, is there a way to add a class to an accordion heading? I've read posts that say a unique class is added to each accordion heading of an accordion but I don't see that when i inspect the element in chrome or in firebug. I'm trying to duplicate this (see attached) where each section (eg: main courses) shows the list items and prices of each item within. Here's my current page:
    • h0bd0b1in
      By h0bd0b1in
      I'm fairly new to the whole web design and CSS thing. I dabbled in HTML back in the day (HTML 3 I think) but I'm looking to get back in to it in earnest. I've managed so far to style my site to a certain extent but I've hit a little bit of a snag.
      I have accordions embedded within an iTab on one of my pages and, while I've managed to successfully alter the background colours of the toggles and content panes, I'm struggling to alter the colour of the text within the accordion toggles. At the moment, they are using the default base colour for my site, which is what I want links to use in every other regard, but in this instance that colour clashes with the toggles background colour.
      I attempted to inject the colour attribute using CSS by referencing the .accordion-toggle class but without success. How would I go about changing this colour?