How to change page title format? advice please

PB79
Pathfinder
115 2 38

Hi

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>{{ shop.name }}</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

Phil

 

 

Replies 2 (2)
PB79
Pathfinder
115 2 38

Cant figure it out myself. Anyone? 🙂

Have a great day

PieterB22
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?