diff --git a/assets/testimonials.css b/assets/testimonials.css index 8dc3d626..1ae552a6 100644 --- a/assets/testimonials.css +++ b/assets/testimonials.css @@ -16,7 +16,6 @@ } .testimonial__image { - width: 50%; /* Full width of the parent container */ object-fit: cover; /* Cover the area without losing aspect ratio */ border-radius: 10px; /* Rounded corners for the image */ } diff --git a/sections/testimonials.liquid b/sections/testimonials.liquid index 20c66cb3..60c13fd5 100644 --- a/sections/testimonials.liquid +++ b/sections/testimonials.liquid @@ -6,14 +6,13 @@ {% for testimonial in section.blocks %} {% if testimonial.type == 'testimonial_row' %}
- {{ testimonial.settings.testimonial_name }} +
+ {{ + testimonial.settings.testimonial_image + | image_url: width: 200, height: 200 + | image_tag: class: 'testimonial__image' + }} +

{{ testimonial.settings.testimonial_content }}

{{ testimonial.settings.testimonial_name }}

@@ -26,14 +25,13 @@ {% for testimonial in section.blocks %} {% if testimonial.type == 'testimonial_column' %}
- {{ testimonial.settings.testimonial_name }} +
+ {{ + testimonial.settings.testimonial_image + | image_url: width: 200, height: 200 + | image_tag: class: 'testimonial__image' + }} +

{{ testimonial.settings.testimonial_content }}

{{ testimonial.settings.testimonial_name }}