Solved

How to add more fields to the testimonial sliders in debut theme?

imarsaal
Shopify Partner
16 1 3

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

 

debute theme testimonialdebute theme testimonial

Accepted Solutions (2)

diego_ezfy
Shopify Partner
2958 568 891

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

View solution in original post

diego_ezfy
Shopify Partner
2958 568 891

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

View solution in original post

Replies 3 (3)

diego_ezfy
Shopify Partner
2958 568 891

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

imarsaal
Shopify Partner
16 1 3
Hi Diego,
Thanks for responding and giving me your time. Well, I'm a developer but
need your guidance if you can do that then that would be great. It can be a
small tutorial or anything else.

Kind regards,
Arslan
diego_ezfy
Shopify Partner
2958 568 891

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