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?