Liquid, JavaScript, themes, sales channels
Hi. I just want to add more fields to the testimonial slider in the debut theme. Like currently, we have four fields image, text, author name, and social media profile.
But i want to add one or two more fields like author role/designation and company
Attaching a screenshot
Solved! Go to the solution
This is an accepted solution.
@imarsaal
Unfortunately there is no simple way to achieve this - besides adding the fields per se through the section's schema, you'll need to wire it all up with the Liquid, CSS and potentially Javascript depending of what you'd like to create. An experienced developer will be essential to get this done. If you'd like to, feel free to reach out.
Kind regards,
Diego
This is an accepted solution.
@imarsaal
In that case, the documentation I referenced in the previous comment teaches in rich details how to add those fields.
You'll simply need to add the additional fields you want to the section's {% schema %}'s settings' JSON and reference them in Liquid.
<p>{{ section.settings.custom-text}}</p>
{% schema %}
{
"name": "Slideshow",
"tag": "section",
"class": "slideshow",
"settings": [
{
"type": "text",
"id": "custom-text",
"label": "Custom field"
}
]
}
{% endschema %}
Kind regards,
Diego
This is an accepted solution.
@imarsaal
Unfortunately there is no simple way to achieve this - besides adding the fields per se through the section's schema, you'll need to wire it all up with the Liquid, CSS and potentially Javascript depending of what you'd like to create. An experienced developer will be essential to get this done. If you'd like to, feel free to reach out.
Kind regards,
Diego
This is an accepted solution.
@imarsaal
In that case, the documentation I referenced in the previous comment teaches in rich details how to add those fields.
You'll simply need to add the additional fields you want to the section's {% schema %}'s settings' JSON and reference them in Liquid.
<p>{{ section.settings.custom-text}}</p>
{% schema %}
{
"name": "Slideshow",
"tag": "section",
"class": "slideshow",
"settings": [
{
"type": "text",
"id": "custom-text",
"label": "Custom field"
}
]
}
{% endschema %}
Kind regards,
Diego
Are you ready to take your business to the next level? Look no further than the latest ...
By SarahF_Shopify Apr 15, 2024We’re keeping the ball rolling to make sure you’re always ahead of the game. So buckle ...
By JasonH Apr 8, 2024Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024