Shopify themes, liquid, logos, and UX
I'm using the Dawn theme. Whenever I click a link in my navigation to any of my products, it shows "tagged "EXAMPLE" in the website title. Basically I want to remove the tagged collection from the website title. Where do I go about removing this?
Solved! Go to the solution
This is an accepted solution.
You probably set up your navigation menu so that the linked collection is filtered by a tag. When you then navigate to that collection via the navigation menu, the collection gets filtered by that tag, i. e. the URL changes from /collections/collectionname to /collections/collectionname/tagname, and the window title accordingly changes to reflect that the collection is being filtered by a tag.
This is Shopify default behaviour and I wouldn't recommend changing it. Instead create automatic collections based on the respective tags and then link those collections in the navigation menu without adding a filter to them.
can you please share store url
Please share your store URL!
Thanks!
This is an accepted solution.
You probably set up your navigation menu so that the linked collection is filtered by a tag. When you then navigate to that collection via the navigation menu, the collection gets filtered by that tag, i. e. the URL changes from /collections/collectionname to /collections/collectionname/tagname, and the window title accordingly changes to reflect that the collection is being filtered by a tag.
This is Shopify default behaviour and I wouldn't recommend changing it. Instead create automatic collections based on the respective tags and then link those collections in the navigation menu without adding a filter to them.
You nailed it. This was exactly the fix I was looking for. I appreciate you taking the time to explain what I did wrong. Thank you!
Your solution does not solve the problem. Why is it accepted? The templates are made for changing default behavior and customizing of the frontend.
It apparently fixed the problem for the OP, and without any changes to theme code.
In the theme.liquid template file you find a code line similar to this
{% if current_tags %}{% assign meta_tags = current_tags | join: ', ' %} –
{{ 'general.meta.tags' | t: tags: meta_tags }}{% endif %}
the 'general.meta.tags' | t: tags filter is responsible for the "tagged" output. so just replace it like
{{meta_tags }}
if you want a nice solution, this could be a hack
products with {{meta_tags | join: '_and_' | remove: ' ' | replace: '_',' ' }}
this populates the meta_tags array with several tag values and removes the '_'
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024