Important

Okay
  Public Ticket #1361935
Question about Accordion List in Page Builder
Closed

Comments

  •  1
    Richard started the conversation

    I am using your Page Builder for Magento 2. I have inserted the Accordion List for a topic and would like for all items to start collapsed. In the widget Options section, Active field, (Defines which tab is active when the widget gets instantiated.), I have left that field blank however the first row opens automatically. Can I do something to have the list start collapsed? Thank you for your help and let me know if you need more information.

  •  1,319
    Land of replied

    Hello Richard,

    Have a nice day!

    Please try to edit the file "/app/code/Ves/BaseWidget/view/frontend/templates/widget/accordion.phtml"

    Then find code:

    $active = isset($active)?$active:0;

    change to:

    $active = isset($active)?$active:-1;

  •  1
    Richard replied

    Thank you for the reply but that did not work. Is there another method to start with the accordion lists collapsed? 

  •  1,319
    Land of replied

    Hello Richard,

    Have a nice day!

    The accordion just need to edit as I mention. I think your custom theme are override the file ? please try to check in: app/design/frontend/[VENDOR]/[THEME NAME]/Ves_BaseWidget/templates/accordion.phtml

    or it was cached in the folder "var/view_preprocessed/html/Ves/"

    Please edit there files with same solution if it was stored at there.