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.
Reply 1 (1)

ShubhamK
Shopify Partner
1 0 0

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