Hello! I just moved my site to Shopify from Wordpress.org. On WP, when I created the title of a post it dynamically inputted that title into the SEO elements
I see with Shopify that you need to manually input the SEO content (Page Title, Description, URL). Is there a free way to make this process dynamic so that when I input the product title it would automatically input the same title into the SEO fields? I would plan to use a template which mirrors the screenshot below.
If there is no solution for doing this with a dynamic variable or code tweak, I’m open to an app though am not looking to spend money on an SEO app at this moment.
Since I don’t know what theme you’re using, I’ve written only if template contains ‘product’ – to be more specific, you can insert the name of the product file instead of just ‘product’ such as ‘main-product’. This should be also working.
Hi @Niki_K . Thanks for your help. I’m using the Minimal theme.
I apologize, but I don’t know what should be substituted in for ‘product’
My goal is to have the same template for every product which inputs the product name and appends " | Earth To Planet Cartoons" so it would look like "Product Name | Earth To Planet Cartoons. I tried modifying your code but didn’t do it correctly. Any ideas?
{% if template contains 'product' %}
{% else %}
{% endif %}
{% if page_description %}
{% endif %}
Is there an additional update I could make to have the UI accurately display the HTML Title?
Also, do you have the bandwidth to help me make a similar update for the HTML Description? The template I’m using is: This Earth To Planet cartoon is appropriately titled, “PRODUCT NAME”. Some will see it and laugh, others will become stark raving mad.
From SEO point of view, the meta descriptions could be seen as a duplicity. The only thing which changes is the product title, which isn’t enough in my opinion.
Google has started overwriting titles and meta descriptions. This means that even if you write unique titles and meta descriptions for each product, it might happen that they will show up differently in SERP. I’ve put together information about this in one of my blog posts, if interested, here is a link: https://www.nikikozak.me/marketing/2021/07/25/titles-metadescriptions/
yes, this works as well. Basically, this solution will overwrite the manually added page titles and meta descriptions.
When you use this solution, view the source code of the page to make sure it works. Besides this, keep in mind that it might take some time before you see the new titles and meta descriptions displayed in the SERP. Plus, as mentioned in one of my previous comments, Google has started overwriting the titles and meta descriptions. You can find more information in my article here: https://www.nikikozak.me/marketing/2021/07/25/titles-metadescriptions/
I was about to implement your title automation until I looked at the theme.liquid and see a ton of automation already in there. Does this code block look “standard” to you? Do I just insert your recommended code at the top?
{{- page_title -}}
{%- if current_tags -%}
{%- include ‘advanced-tag-loop’ -%}
{% assign title_tags = ‘’ %}
{% assign meta_tags = current_tags | join: ', ’ %}
{%- for tag in current_tags -%}
{% assign is_advanced_tag = false %}
{% assign cat = tag | split: ‘_’ | first %}
In my case when I pull an SEO crawl from the site I get a title tag like this:
“Natural Baby Water Toys | i play.® by Green Sprouts®\n\n \n \n \n\n \n\n \n – green sprouts”
The “/n” are tags added to the product backend as it varies the amount of “/n” from product to product.
I tried applying your solution but it modifies the title tag on the browser showing “” and " so I had to revert any changes
Hi Niki, Thanks for your suggestion! I fixed this issue, but I met a new problem. What should I do if the store name has been inserted into the title of some pages? Is it possible to add judgment to analyze whether the title contains the store name?