When you post to social media and include a link to your website, the social media page looks for a special line of code to determine which image to use. Below are steps to create and add the line of code and the image itself.
- Create an image in Photoshop or a similar software that is 1200w x 630h pixels. Leave some margin on all sides to allow for resizing by various device sizes. Name this image social.png
- Create a new page on your website and name it social-image. Check the box to make this page hidden from navigation.
- Go to this new page in the editor and upload your graphic that you created in step on. Click Publish.
- In the live view of the website in your browser, go to this new website page which can be found at your yourdomainname/social-image.html
- Right click on the image and open the image in a new tab or window.
- Copy the URL from viewing this image by itself in the browser. Save this long URL somewhere.
- In a notepad or word document enter this lien of code:
<meta property="og:image" content="IMAGE URL GOES HERE" />
Replace IMAGE URL GOES HERE with the link of the image you found and saved in step 6. - In the website editor, go to the settings page and then go to SEO. In the header section enter the new line of code you formed in step 7.
- Click save and publish.
- Test out if it worked by visiting a site such as https://orcascan.com/tools/open-graph-validator
- Test further by trying a post on Facebook.
0 Comments