I’m launching my website in 5 days and I need help with an issue I’m facing. I created a custom section in my theme code for collapsible descriptions, which I’m using on both product pages and a general content page. However, most of the time, the collapsible sections don’t work once the site is published.
Also, on the mobile interface, the collapsible titles are showing in blue, which I didn’t specify in my design or code.
Could you please help me fix:
-
The inconsistent behavior of the collapsible sections (sometimes not working when published).
-
The blue color of the collapsible titles on mobile, which I didn’t set.
Any urgent guidance would be hugely appreciated so I can launch on time!
The code:
{% comment %}
Collapsible Description Section
File: collapsible-description.liquid
{% endcomment %}
{{ section.settings.title }}
{% endif %}{% for block in section.blocks %}
{% schema %}
{
“name”: “Collapsible Description”,
“settings”: [
{
“type”: “text”,
“id”: “title”,
“label”: “Section Title”,
“default”: “More Information”
}
],
“blocks”: [
{
“type”: “collapsible”,
“name”: “Collapsible Item”,
“settings”: [
{
“type”: “text”,
“id”: “heading”,
“label”: “Heading”,
“default”: “Click to expand”
},
{
“type”: “richtext”,
“id”: “content”,
“label”: “Content”,
“default”: “
Here is your collapsible content.
”}
]
}
],
“presets”: [
{
“name”: “Collapsible Description”,
“category”: “Custom”
}
]
}
{% endschema %}