Okay
  Public Ticket #2739632
Can Accordion Container default to off so content is hidden on page load?
Closed

Comments

  • Ryan Hutchinson started the conversation

    Hi. I have a lengthy form my client would rather stay hidden until a visitor actively clicks to reveal it. I thought the Accordion Container might do the trick but it defaults to "on" so the form is visible on page load. Is it possible to choose which state the Accordion Container defaults to? Cheers.

  •  1,701
    Support Agent replied

    In order to make a page load with accordions collapsed by default, please edit fitness-club/bt_elements.js

     file in your wp-content/plugins folder and locate the following statements:

    $( '.tabsVertical' ).each(function(){ $( this ).find( '.tabAccordionTitle' ).first().click(); });

    Remove these statements from the file or comment them out and your accordions will remain closed on page load. (the code should be around line 174).

    Please make sure you clear the cache after those changes.

    Let us know if you need additional assistance.

    Regards, BoldThemes team

    If you like our products please consider leaving us a rating. A huge thank you from BoldThemes in advance!

  • Ryan Hutchinson replied

    Works perfectly. Thanks for your help!

  •  1,701
    Support Agent replied

    Hi,
    You are welcome!
    We are glad we could help.

    Regards, BoldThemes team

    If you like our products please consider leaving us a rating. A huge thank you from BoldThemes in advance!