wonder if I can set the page title with a variable(not sure this term is right..) on product pages
for example in WordPress, you can set products page title like: %product_name% - %site_name%
and it automatically set the page title like: Product A name - example site
Is there any function like a snippet in WordPress in Shopify?
and even better if I can set it only on product pages..
Code it in liquid. Usually between <title> tags in themes.liquid
Heaps of liquid string manipulation (filters) and control flow (if/then conditionals) available to make it behave the way you want. See this Liquid Cheat Sheet
User | Count |
---|---|
16 | |
16 | |
13 | |
12 | |
11 |