Questions tagged [accordion]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
3answers
266 views

Using magento 2 accordion widget with href links

I am trying to build a category accordion in my side bar and I am using magento 2 accordion widget https://devdocs.magento.com/guides/v2.4/javascript-dev-guide/widgets/widget_accordion.html <?php $...
1
vote
1answer
125 views

Can't close accordion after update from 2.3.1 to 2.3.5-p1

tl;dr After upgrading from Magento 2.3.1 to Magento 2.3.5-p1 our custom JavaScript, part of our custom theme, stopped working. I'm receiving the following error when trying to close the accordion ...
1
vote
0answers
39 views

Nested collapsible elements: initialize a collapsible inside of content for another collapsible

Having a data-mage-init='{ "collapsible":{ "collapsible": true, "openedState": "opened", "multipleCollapsible": true, "header": ".parent__collapsed", "content": "....
1
vote
1answer
389 views

How to close layered navigation accordion on side click?

If anyone can help me with how to close active accordion of layered navigation if clicked outside the layered navigation block? <div class="filter-options" id="narrow-by-list" data-role="content" ...
0
votes
2answers
201 views

magento2.4 accordian with plus minus icon

I am creating an FAQ page as a CMS page and want to use the native Magento accordian function however I also want each faq to have a plus minus to indicate it can be open/closed. I know the accordian ...
0
votes
1answer
14 views

Magento 2 callback dimensionsChanged accordion does not work

I built an accordion from the Magento 2 documentation. CODE JS: $(".init-accordion").accordion({ "active": [1, 2], "collapsible": true, "openedState"...
0
votes
0answers
16 views

Magento 2.4 - How to change description section one below other to accordion

By default magento 2.4 description like one below other how to change into accordion, any guide most welcome thanks. How to apply Magento docs into my description section?
0
votes
0answers
28 views

Make product data tabs collapsed by default

I want all product data tabs on the product details page to be collapsed by default. I edited this line in app/design/frontend/<Namespace>/<theme>/Magento_Catalog/templates/product/view/...
0
votes
2answers
421 views

data-mage-init breaks in cms static blocks or pages - how do i get an accordion?

I have been trying to have some blocks with collapsible content, but to put them in cms blocks so the text can be maintained by a normal human I have found, thanks to previous stack discussions, that ...
0
votes
1answer
62 views

Change breakpoint accordion vs. tabs product data

I'm struggling with my product tabs. I've that many tabs, that the tabs are wrapped to a new line. For this reason, I would like the breakpoint to change to an accordion from screen__m to screen__l. ...
0
votes
0answers
46 views

How to make the content inside “gift options” be open when entering the cart?

Hi I´m editing this file: vendor/magento/module-gift-message/view/frontend/web/template/gift-message.html Is there a way to make the content inside the div with the class "gift-item-block" opened by ...