Okay
  Public Ticket #1839179
Close all items of an accordion element
Closed

Comments

  • howard started the conversation

    Hello

    How does one Close all items of an accordion element in Shopscape.

    I see 'https://boldthemes.ticksy.com/ticket/1739350' but it doesn't seem to apply to Shopscape

  •  1,204
    Support Agent 1 replied

    Hi Howard,

    In order to make a page load with accordions collapsed by default, please navigate to Plugins> Editor, select shopscape/bt_elements.js file, and in that file please locate the following line of code and remove it, or comment it out:

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

    That code is on line 174:

    6803837078.png

    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!

  • howard replied

    That worked, thanks!
    Should this actually be done in the Child theme to stop it being written over in a future update?
    If so, please provide some pointers on how to do this in the Child theme

  •  1,204
    Support Agent 1 replied

    Hi Howard,

    You're welcome!smile.png We are glad we could help!

    We will take a closer look at this and we will get back to you tomorrow.

    Thank you for understanding!


    Regards, BoldThemes team

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

  •  1,204
    Support Agent 1 replied

    Hi Howard,

    Thank you for your patience!

    Please note that  since the code is related to the plugin, and not to the theme, it can't be placed to the child theme's functions.php.

    It would require additional customization and modifications. You can refer to the following forum:

    https://wordpress.stackexchange.com/questions/198120/how-child-themes-directory-works-for-plugins

    Let us know if you need help with anything else.



    Regards, BoldThemes team

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