Hi,
I am using the paid for theme ‘Boost’ and would like add my product description to a collapsable tab by default. Is there a simple way to do this?
A user working with the paid Boost theme wants to move product descriptions into a collapsible tab by default instead of displaying them in the standard format.
Another user provided a code solution involving:
{{ product.description | escape }} within a collapsible structureThe code appears partially corrupted or reversed in the original post, but demonstrates the basic approach of wrapping the product description in collapsible HTML elements and adding interactive JavaScript controls. The solution requires custom code implementation rather than a built-in theme setting.
Hi,
I am using the paid for theme ‘Boost’ and would like add my product description to a collapsable tab by default. Is there a simple way to do this?
Use this code for tabs
{{ product.description | escape }}
const collapsibleBtn = document.querySelector('.collapsible-btn');
const collapsibleContent = document.querySelector('.collapsible-content');
collapsibleBtn.addEventListener('click', () => {
collapsibleContent.classList.toggle('active');
});