Why is my SEO check still failing after I added a page title in my Shopify settings?
This can happen when there is no title code inside your theme. You can add a title to the theme by following the directions below.
Add a title to your theme
- View your website
- Right click and select ‘View Page Source’
- Type Control+F (Command+F on a Mac) to open the search box
- Search for <title> in the file to find the different titles in your theme
- If zero results appear then view your themes in Shopify
- Select ‘Actions’ and ‘Edit code’ for your live theme
- Open the theme.liquid file
- Add the following piece of code between the <head></head> tags
We always recommend you make a backup of your active theme before making any code changes.
<span style="font-weight: 400;"><title>{{ page_title }} | {{ shop.name }} {% if template == '404' %}404 Error{% endif %}</title></span>