Add custom page title and meta description only product pages in Shopify

Go to the theme.liquid file in editor and replace these lines with your existing title and meta description code.

<!---- Title and description ---->
<title>
{% if product %}
Buy {{ product.title }} Online India – {{ shop.name }} {% else %}
{{ 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 %}
{% endif %}
</title>

{% if product %}
<meta name="description" content="Buy {{ product.title }} at {{ shop.name }}. Enjoy best deals, free shipping, offers and much more on it. Shop Now!">
{% else %}
{% if page_description %}
<meta name="description" content="{{ page_description | escape }}">
{% endif %}
{% endif %}

Another example of meta tag description

{% if page_description %}
   
    {% if product %}
        {% if collection.title == "For Her" %}
            <meta name="description" content="Buy Fitstrong {{ product.title }} online at {{ product.price | money }} from Fitstrong supplements. You can choose & purchase a desired supplement to attain your fitness goals. Shop now!">
        {% elsif collection.title == 'For Him' %}
            <meta name="description" content="Buy Fitstrong {{ product.title }} online at {{ product.price | money }} from Fitstrong supplements. You can select & buy a desired supplement to attain your fitness goals. Shop now!">
        {% else %}
            <meta name="description" content="{{ page_description | escape }}">
        {% endif %}
    {% endif %}
  
{% endif %}

Read More Post

STAY CONNECTED

Most Popular

Manifesting Your Dream Career: Finding Your Passion And Purpose
01 Aug

Manifesting Your Dream Career: Finding Your Passion And Purpose

Are you passionate about finding your dream career? Manifesting can help you align your career with your passions and purpose.

Revolutionizing Your Ride: Expert Auto Service At Carolina Auto Service
27 Feb

Revolutionizing Your Ride: Expert Auto Service At Carolina Auto Service

Finding a reliable auto service provider is paramount in the bustling world of vehicle maintenance and repair. That's where Carolina

Floratam: The Robust Grass Solution From Council Growers SOD
25 Jan

Floratam: The Robust Grass Solution From Council Growers SOD

Floratam grass, a popular St. Augustine variety, has become a go-to choice for homeowners and landscapers seeking a lush, durable

Carolina Mobile Autoservice: Your Go-To For Expert Brake Service Repair
25 Jan

Carolina Mobile Autoservice: Your Go-To For Expert Brake Service Repair

For vehicle owners, the braking system is among the most critical components for safety and performance. Carolina Mobile Autoservice, a

Safeguarding Your Property: Expert Water Damage Services By MBC Capital
24 Jan

Safeguarding Your Property: Expert Water Damage Services By MBC Capital

Water damage can significantly impact homes and businesses, often leaving a trail of destruction and disruption in its wake. Understanding

Revanesse Lip Filler: The Secret To A Perfect Pout – Discover America’s New Favorite At Beauty From Ashes Aesthetics
19 Jan

Revanesse Lip Filler: The Secret To A Perfect Pout – Discover America’s New Favorite At Beauty From Ashes Aesthetics

In the ever-evolving world of cosmetic enhancements, there's a constant quest for the next big thing. The latest darling in