Returns an image drop for the image to show in social media feeds or search engine listings.

{{ page_image | image_url: width: 300 }}
//cdn.versacommerce.de/s/files/1/0987/1148/files/nice-candle-and-rocks.jpg?v=1590502771&width=300

On product pages, collection pages and blog posts, page_image is the image of the resource, if there is one. For example, the page_image of a product page is the same as product.featured_image. If there is no image, page_image falls back to the social sharing image of the shop set in the admin.

Open Graph tags

The page_image drop is often used in themes to build Open Graph og:image meta tags, for example:

  • og:image
  • og:image:secure_url
  • og:image:width
  • og:image:height

More properties

VersaCommerce also provides these properties on the page_image object:

Properties Returns
image, url, src, fallback_url, secure_url, width, height, aspect_ratio, alt Resolved page image and attributes