Shopify themes, liquid, logos, and UX
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Hey guys, I'm looking to display the tags that I add to my blog posts in the back end to display in the front end on the actual blog page somewhere. Is this possible?
Thanks!!
Solved! Go to the solution
This is an accepted solution.
Add a "Custom liquid" section, say, at the top of the template and paste this code:
{% if article.tags.size > 0 %}
<div class="page-width center">
{% for t in article.tags %}
<a
class="badge full-unstyled-link link--text"
href={{ blog.url}}/tagged/{{ t | handle }}>
{{ t | capitalize }}
</a>
{% endfor %}
</div>
{% endif %}
Will produce this:
Hey @environmentalPa,
Would you like to share the store URL so that i can check which theme is used. Based on I can provide you exact solution.
This is an accepted solution.
Add a "Custom liquid" section, say, at the top of the template and paste this code:
{% if article.tags.size > 0 %}
<div class="page-width center">
{% for t in article.tags %}
<a
class="badge full-unstyled-link link--text"
href={{ blog.url}}/tagged/{{ t | handle }}>
{{ t | capitalize }}
</a>
{% endfor %}
</div>
{% endif %}
Will produce this:
Tim back at it again with the Excellent plays.
@environmentalPa yes it is possible, need code tweak to display tags to blog posts, I can do it for you if you can add me to the website as collaborator