All things Shopify and commerce
Hello,
I would like to add "Read More" to the description of the collection.
For example: https://www.mountainwarehouse.com/travel/accessories/microfibre-towels/
Is there anyone who can help me with this?
i am on impact theme
It is the "Read More" button circled in blue
You need to create a new section, so you can dynamically add it to the collection page. Just create a file named "collection-info.liquid" in your section folder.
<div class="details-container">
{% if collection.description != blank %}
<details>
<summary>{{ section.settings.readmore }}</summary>
<p>
{{ collection.description }}
</p>
</details>
{% endif %}
</div>
{% schema %}
{
"name": "Collection Info",
"settings": [
{
"type": "text",
"id": "readmore",
"label": "Button Text",
"default": "Read More"
}
],
"presets": [
{
"name": "Collection Info",
"category": "Collection Info"
}
]
}
{% endschema %}
{% stylesheet %}
.details-container {
text-align: center;
}
{% endstylesheet %}
If you need additional help, let me know
and how would i go about adding the following "info icon" in the following location.
It depends: What should happen after you click the info icon? Should it behave the same like the Read More?
i want it to behave exactly like the website, basically further information on the collection for SEO purposes.
Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024