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 %}
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024