Shopify themes, liquid, logos, and UX
Hi!
I want to change my meta title Google search page. The screenshot shows what it is like right now.
Some weeks ago I filled in this as a meta title:
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 %} – tagged "{{ current_tags | join: ', ' }}"{% endif -%} {%- if current_page != 1 %} – Page {{ current_page }}{% endif -%} {%- unless page_title contains shop.name %} – {{ shop.name }}{% endunless -%} </title>
My stores code after removing:
<title> {{ page_title }} {%- if current_tags %} – tagged "{{ current_tags | join: ', ' }}"{% endif -%} {%- if current_page != 1 %} – 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.
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 %} – tagged "{{ current_tags | join: ', ' }}"{% endif -%}
{%- if current_page != 1 %} – 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?
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024