Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
I Have created two more category of blog. I Update Diffrent blog page for both category and same as for article. my meta property is as :
{% if template.name == 'product' %}
{% assign variant = product.selected_variant %}
{% assign og_image = variant.featured_media.preview_image | default: product.featured_media.preview_image %}
{% elsif template.name == 'collection' %}
{% assign og_image = collection.image %}
{% elsif template.name == 'article' %}
{% if article.image %}
{% assign og_image = article.image %}
{% endif %}
{% endif %}
Where my blog-post is working properly in meta tag. bt for other two category takes complete blog in meta property tag. article_excerpt is not working may be.
<meta property="og:description" content="{{ og_description | escape }}">
{% if template.name == 'product' %}
{% assign variant = product.selected_variant %}
{% assign og_title = product.title | append: variant.title | strip_html %}
{% elsif template.name == 'article' %}
{% assign og_title = article.title | strip_html %}
{% assign og_type = 'article' %}
{% assign og_description = article.excerpt_or_content | strip_html %}
{% elsif template.name == 'password' %}
{% assign og_title = shop.name %}
{% assign og_url = shop.url %}
{% assign og_description = shop.description | default: shop.name %}
{% endif %}
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025