FROM CACHE - en_header
Return management just got easier! We’ve launched Customer Self-Serve Returns to all Shopify merchants. Click here to learn more!

How to change page title format? advice please

115 2 38


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)
115 2 38

Cant figure it out myself. Anyone? 🙂

Have a great day

Shopify Partner
54 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?