I don’t know if I’m going about this the best way (hopefully I am), but I inserted the following code I found from a post on this website into my layout/theme.liquid file to make my product titles dynamic:
<title>{% if template == "product" %}{{ product.title }} | {{ shop.name }}{% endif %}</title>
Mission accomplished. It worked just as I’d hoped. However, now my products are the only pages with titles. How can I edit the code so all the pages (not just the products) have appropriate titles for SEO?
New contributor
crunchmouth is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.