Categories
Recent Comments
Community News
- Create a Beautiful Epic Mountain Sunset in e-on Vue | CG.CreativeFan
- Do designers deserve down-payments?
- 20 Beautiful Food Structure Edible Architecture Make You Hungry
- Freelancer’s errors: a few tips to work better
- 21 Free WordPress Themes Made By Some Serious Guys
- Admix Web Mix of the Month: August 2010
- How to Build a Successful and Innovative (Design) Brand Online
- Create Animated Landscape using Pure CSS3
- 20 PSD Tuts That Will Turn You Into A Photoshop Guru
- 20 Snippets You should be using from Html5 Boilerplate
-
RSS Links



Shopify : The current tag as a title
Using tags in Shopify to create nested navigation is a great way to help customers find products but once they’ve browsed to the tag page you need to let your customers know what they’re looking at. A collection has the following property for this : -
{{ product.title }}That works well for collections but tags are slightly different firstly a tag doesn’t have a title so you can’t have{{ tag.title }}. Tags are attributes of products and collections but if you use {{ collection.tags }} you are going to get a list of all the tags associated with the collection, which is not what we want. The function to use is : -
{{ current_tags }}And voila this will output the current tag which you can use as a title by wrapping it in some <h2> tags or what ever you want. Nice and simple when you know how.
Related posts: