Hi! I have only one category in my store that is “ALL”, and products can be filtered by tags. How could I change the title of the collection page according to the tags? The theme in Minimal
Hi
Edit code-Collection Template–collection.liquid or collection-template.liquid–Add Code to Dynamically Change the Title
Here’s an example of how you can do this:
{% if current_tags contains 'your_tag' %}
# Your Custom Title Here
{% else %}
# Default Collection Title
{% endif %}
Replace ‘your_tag’ with the actual tag you want to check for, and replace ‘Your Custom Title Here’ with the custom title you want to display if the tag matches.
Save–> Preview and publish
Please take a backup first
Still, you need you can contact with us