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.
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024