Last active
May 2, 2024 22:36
-
-
Save svaustin66/9d73486c6a83b67ed04cdbe2f738abf4 to your computer and use it in GitHub Desktop.
Code to Add to Klaviyo emails for Recent Judge.me Reviews
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div> | |
<h3 style="text-align: center; font-style: normal; margin-bottom: 32px;"><strong>Customer Reviews</strong></h3> | |
{% for testimonial in feeds.JudgemeReviewTestimonialsFeed.testimonials %} | |
{% if testimonial.rating == 5 %} | |
<div style="margin-bottom: 32px;"> | |
<div style="text-align: center; font-style: normal; font-weight: normal; margin-bottom: 8px;">{{ testimonial.content|truncatewords:140 }}</div> | |
<div style="text-align: center; color: #FFBA00; margin-bottom: 8px;">★★★★★</div> | |
<div style="text-align: center; font-style: normal; font-weight: normal; margin-bottom: 4px;"><strong>{{ testimonial.author_name }}</strong></div> | |
<div style="text-align: center;"><a style="font-weight: normal; text-decoration: underline;" href="{{ testimonial.product_url }}" target="_blank" rel="noopener"> {{ testimonial.product_name }} </a></div> | |
</div> | |
<hr> | |
{% endif %} | |
{% endfor %} | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment