Shopify themes, liquid, logos, and UX
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Hi Dear Sir/Madam
Previously to improve SEO, each website page will include a tag "keywords" apart of "description" "h1,h2,h3..." and "alt" for example...
<meta name="keywords" content="Keyword1, Keyword2, Keyword3">
But I have checked.. shopify doesn't have any way to insert this information for pages/products/collections
So I did some research on web and seems "keywords" tag is not useful anymore for SEO?
https://www.semrush.com/blog/meta-keywords/
1. Please can someone provide some information ?
2. And would like to confirm: is is because "keyword" tags are irrelevant.. is this the reason that's why shopify will not provide this functionality?
Many thanks!
J
Solved! Go to the solution
This is an accepted solution.
Hi,
Shopify doesn't have the option for meta keywords. But you can use metafield and liquid to add meta keywords.
Thank,
This is an accepted solution.
Hi, Please follow my image: https://ibb.co/FKjC7nq
Then you can config in product.
I hope this can help you.
Thank,
This is an accepted solution.
Hi,
Shopify doesn't have the option for meta keywords. But you can use metafield and liquid to add meta keywords.
Thank,
Thank you !
Hi,
Could you please give me an example in liquid code how to add for each different product a different meta keyword please?
For example for the Product A:
<meta name="keywords" content="keyword_A1, keyword_A2, keyword_A3">
For example for the Product B:
<meta name="keywords" content="keyword_B1, keyword_B2, keyword_B3">
And need to be in between the head tag, that is located at theme.liquid?
Many Thanks !
J
Hi,
Could you please give me an example in liquid code how to add for each different product a different meta keyword please?
And need to be in between the head tag, that is located at theme.liquid?
Many Thanks !
J
Hi,
For example:
{%- assign og_meta_keywords_prd = product.metafields.og_meta_keywords.content -%}
{%- if request.page_type == "product" and og_meta_keywords_prd != blank -%}
{{ og_meta_keywords_prd }}
{%- endif -%}
I hope this can help you.
Thank,
Hi
1. Where should I add this code? in which liquid file? at theme.liquid? between "head" tag?
{%- assign og_meta_keywords_prd = product.metafields.og_meta_keywords.content -%} {%- if request.page_type == "product" and og_meta_keywords_prd != blank -%} {{ og_meta_keywords_prd }} {%- endif -%}
2. Where should I add the VALUE of product.metafields,og_meta_keywords.content?
for example if I have Keyword_A1, Keyword_A2 for product A
3. Can I add this for Shopify1.0 and Shopify 2.0?
4. Can add it from each product from the shopify CMS?
Thank you so much for your time
J
Hi,
1. You can edit file theme.liquid and add the code between "head" tag.
2. Please follow document https://help.shopify.com/en/manual/metafields
You can use app: https://apps.shopify.com/metafields-editor-2
3. Support for Shopify1.0 and Shopify 2.0
4. Yes. If you use Shopify 2.0 https://help.shopify.com/en/manual/metafields
Thank,
Hi
Thank you for your information
1. I have added this code at theme.liquid in between <head></head>
2. If I want to show for
How should I add this information here? Please could you guide me a complete flow of an product to add the keywords? (ProductA)
Thank you so much for your help
J
This is an accepted solution.
Hi, Please follow my image: https://ibb.co/FKjC7nq
Then you can config in product.
I hope this can help you.
Thank,
Thank you!
I understand now 🙂
Appreciate your help!
J
Thanks Kai for the details.
But by doing the steps the keywords are getting visible on the header.
Also will good be counting these keywords in terms of SEO ?
this will solve the issue on keywords that are visible on the header.
{%- assign og_meta_keywords_prd = product.metafields.og_meta_keywords.content -%}
{%- if request.page_type == "product" and og_meta_keywords_prd != blank -%}
<meta name="keywords" content="{{ og_meta_keywords_prd }}">
{%- endif -%}