The 'og:image' property should be explicitly provided, even if value can be inferred from other tag

Max_Parrott
Visitor
1 0 0
Inferred Property - The 'og:image' property should be explicitly provided, even if a value can be inferred from other tags.

How do I fix this? I am currently using the 'Craft' theme.
 
Many thanks for your kind and speedy assistance - no one seems to be able to help me.
Replies 3 (3)

ShubhamK
Shopify Partner
2 0 1

You will have to add the 'og:image' meta tag manually to your theme's HTML.

 

Step 1: Open your Shopify admin dashboard, and go to "Online Store" > "Themes" > "Actions" > "Edit Code."

Step 2: Then, locate and open the theme.liquid file

Step 3: Add the following code within the <head> section of your HTML: 

 

<meta property="og:image" content="URL_OF_YOUR_IMAGE" />

 

* Replace "URL_OF_YOUR_IMAGE" with the actual URL of the image you want to use. This should be a direct link to the image file, preferably under 200x200 px

 

Step 4: Save and publish

Step 5: Enjoy 

Hellene_Hiner
Shopify Partner
3 0 1

should I do this for EVERY page that I would like to share?

ShubhamK
Shopify Partner
2 0 1

No need to do this for EVERY page unless you have created custom pages that do not derive property from theme.liquid 

99.99% pages will work with just one change, cheers!