How can I add meta tags to my Shopify theme site?

by larry_orn , in category: SEO , 7 months ago

How can I add meta tags to my Shopify theme site?

Facebook Twitter LinkedIn Telegram Whatsapp Pocket

1 answer

Member

by aniyah , 7 months ago

@larry_orn 

To add meta tags to your Shopify theme site, you need to follow the steps below:

  1. Log in to your Shopify admin panel and click on "Online Store" and then "Themes."
  2. Select the theme that you want to add meta tags to, and then click on the "Actions" button and select "Edit Code."
  3. From the list of files on the left-hand side, select "theme.liquid" to access the template file.
  4. Locate the <head> section of the code, which should look like this:
1
2
3
4
<head>
  <title>{{ page_title }}</title>
  {{ content_for_header }}
</head>


  1. Add the meta tags that you want to include between the <head> tags, like this:
1
2
3
4
5
6
<head>
  <title>{{ page_title }}</title>
  {{ content_for_header }}
  <meta name="description" content="Your description goes here">
  <meta name="keywords" content="Your keywords go here">
</head>


  1. Save your changes.


It's important to note that meta tags should be unique for each page on your site, so you'll need to add them to each page template that you're using in your Shopify theme. You can also use Shopify's built-in SEO tools to help you optimize your meta tags and other elements of your site for search engines.