How to change what comes up on the google search page

How to change what comes up on the google search page

NickBordum
Tourist
3 0 1

Hi!

I want to change my meta title Google search page. The screenshot shows what it is like right now. 

NickBordum_0-1727640953065.png

 

Some weeks ago I filled in this as a meta title:

NickBordum_1-1727641089830.png

But it doesn't display on the google search results. I have tried requesting for indexing on the google search console, with no luck.

 

I remember a time where it displayed "StoresByNico: We'll Build You a Custom Dropshipping Store for Just €15!" on google, and then I saw a post where they said to remove this specific line from the theme.liquid code:

 

{%- unless page_title contains shop.name %} – {{ shop.name }}{% endunless -%}

 

 

My stores code before removing:

<title>
  {{ page_title }}
  {%- if current_tags %} &ndash; tagged "{{ current_tags | join: ', ' }}"{% endif -%}
  {%- if current_page != 1 %} &ndash; Page {{ current_page }}{% endif -%}
  {%- unless page_title contains shop.name %} &ndash; {{ shop.name }}{% endunless -%}
</title>

My stores code after removing:

 

 

<title>
  {{ page_title }}
  {%- if current_tags %} &ndash; tagged "{{ current_tags | join: ', ' }}"{% endif -%}
  {%- if current_page != 1 %} &ndash; Page {{ current_page }}{% endif -%}
</title>

 

 

After I removed it, it didn't work. Some time went by and now it only displays "StoresByNico" on the search page. I haven't tried to put in the deleted code again.

How can I get my preferred meta title to display correctly?

Bonus question: I don't want "products" to appear on the Google search results page (as seen at the bottom of the first screenshot). I only want my homepage to be displayed, along with a single product from my website, which is https://storesbynico.com/products/custom-built-dropshipping-store.

Even though my site has six products listed, I only want this specific one and my homepage to appear in the Google search results. Nothing else should be shown.

 

Reply 1 (1)
NickBordum
Tourist
3 0 1

Thank you for your answer. The bonus question solution worked!

But I am wondering what you meant with the 2. option in the question above.

So my code looks like this now:

<title>
  {{ page_title }}
  {%- if current_tags %} &ndash; tagged "{{ current_tags | join: ', ' }}"{% endif -%}
  {%- if current_page != 1 %} &ndash; Page {{ current_page }}{% endif -%}
</title>

 

Do you want me to make it look like this?

<title>
{{ page_title }}
</title>

 

If so, doesn't it just display my page name, which is "StoresByNico"? Or does it display the meta title I put in Online Store > Preferences?
And wouldn't I just be able to type in for example <title>We'll Build You a Custom Dropshipping Store for Just €15!</title> to display this exact meta title?