---
title: "page_image"

doc_type: static
doc_category: static
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/sline/object/page-image'
  md: 'https://developer.shopline.com/docs/sline/object/page-image.md'
---

# 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](https://help.shopline.com/hc/en-001/articles/23888047679001-Setting-Up-Store-Link-Thumbnail-Images) 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.


            

            
<SlineExample path={'/products/vip3'} objects={ 
    [""] 
}>
```sline
{{#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}}

```
</SlineExample>
            
        
    
