No og-image for blog posts, hence no image shared

Katandmouse
New Member
6 0 0

Our blog posts have featured images, but there are empty og-image tags on all the posts. How do we get Shopify to use our featured images as the og-images/ 

This is in the code and has no effect in the blogs: {% if article.image %}
{%- capture og_image_tags -%}<meta property="og:image" content="http:{{ article.image | img_url: '1200x1200' }}">{%- endcapture -%}
{%- capture og_image_secure_url_tags -%}<meta property="og:image:secure_url" content="https:{{ article.image | img_url: '1200x1200' }}">{%- endcapture -%}
{% endif %}

Replies 0 (0)