Goal: Collapse a long product description by default on a TOYO theme product page, so customers expand it only if needed.
What’s proposed:
Two helpers say this is possible via custom code and may also be available as a theme setting (an “auto close” option). No specific theme setting location was identified.
Admin steps: Online Store > Themes > Actions > Edit code, open theme.liquid, and add a script just before the closing tag.
Latest update (technical approach):
A JavaScript snippet was provided that runs on window load and targets the product page’s accordion/description (a HTML element). It removes the “open” attribute to ensure the description is closed by default.
Clarifications requested:
The original poster asked twice for a screenshot and how to find the tag in theme.liquid. A helper explained to search theme.liquid for and paste the code immediately above it.
Key terms:
theme.liquid: main layout file. : closing HTML body tag. “open” attribute: controls expanded/collapsed state.
Status: No confirmation of implementation; screenshots not provided. The thread appears open with pending user understanding of where to place the code.
Summarized with AI on December 16.
AI used: gpt-5.
I have a website where i have products with a big description and i am wondering if i can have them auto closed so only if the costumers want to read it they can open it, because right now they are auto open everytime.