New Shopify Certification now available: Liquid Storefronts for Theme Developers

How to change page title format? advice please

120 2 39


this is how my code in the theme.liquid looks

<!-- Basic page needs ================================================== -->
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="shortcut icon" href="{{ 'favicon.ico' | asset_url }}" type="image/png" />
{%- if template contains 'index' -%}
{%- if page_title != blank and page_title != 'Welcome' -%}

<title>{{ page_title }}</title>
{%- else -%}
<title>{{ }}</title>
{%- endif -%}
{%- elsif template == '404' -%}
<title>Page Not Found</title>
{%- else -%}
<title>{{ page_title }}</title>
{%- endif -%}

{%- if page_description -%}
<meta name="description" content="{{ page_description | escape }}" />
{%- endif -%}

All i want it that all pages just use the page title, but in the google search my page keeps looking different.

For an example my page title/seo title could be:

Shirtmaster | Cool Shirts | Free Beer Also!

in google its:

Cool Shirts - Shirtmaster


I would be very glad if someone could help me out with the code

Have a nice day and take care all




Replies 2 (2)
120 2 39

Cant figure it out myself. Anyone? 🙂

Have a great day

Shopify Partner
55 9 15

Hi Phil,

What exactly are you trying to achieve? Are you trying to show different titles on different pages? Or are you trying to show dynamic titles for your pages?