page_image
The image to be displayed in search engine listings and social media previews as the cover for the current page.
For product, collection, and blog pages, their featured images will be used for this purpose. For all other pages, or pages without a featured image, their social sharing image will be used, or the store logo will be used if no social sharing image is available.
Example
You can create Open Graph og:image meta tags for different pages, specifying the images to show when pages are shared on social media.
{{#if page_image}}
<meta property="og:image" content="{{page_image.src}}" />
<meta property="og:image:secure_url" content="{{page_image.src}}" />
<meta property="og:image:width" content="{{page_image.width}}" />
<meta property="og:image:height" content="{{page_image.height}}" />
{{/if}}
Was this article helpful to you?