Article •
Blog post
Table of contents
Display the contents of a blog post for your customers to read.
Show the featured image
In the following example, the settings that affect the display on mobile are used, but the same steps apply to the settings that affect the display on desktop.
- From your Shopify admin, go to Online Store → Themes.
- Next to Emporium, click Customize.
- In the drop-down menu at the top of the page, select a Blog post template.
- Click the Blog post header section.
- Check Show image (mobile).
If you choose to show the blog post image, then make sure you add a blog post image for each blog post on your online store. It’s recommended to upload landscape images.
Improve the art direction of the featured image
The featured image looks best on desktop when a landscape image is used. However, the featured image tries to adopt a square (1:1) aspect ratio on mobile. In some cases, the featured image may not look right when displayed at this aspect ratio. You can override the default featured image with a different image on mobile, to improve art direction.
In order to override the default featured image on mobile, you must:
- add a Metafield definition,
- populate the Metafield with an image,
- use the image on the Blog post template.
Add a Metafield definition
- From your Shopify admin, go to Settings → Custom data.
- Click Blog posts.
- Click Add definition.
- In the Name field, input a name (e.g. Mobile featured image).
- Optional: In the Namespace and key field, input a value.
- Optional: In the Description field, input a description.
- Click Select type.
- Select File.
- Select One file.
- Under Validation, check Accept specific file types → Images.
- Under Access, check Storefronts.
- Click Save.
Populate the Metafield with an image
- From your Shopify admin, go to Online Store → Blog posts.
- Select the blog post you want to edit.
- Under Metafields, click the name of your Metafield (e.g. Mobile featured image).
- Click Select image.
- Select the image to display, or upload a new image, and click Done.
- Click Save.
Use the image on the Blog post template
- From your Shopify admin, go to Online Store → Themes.
- Next to Emporium, click Customize.
- In the drop-down menu at the top of the page, select a Blog post template.
- Click the Blog post header section.
- Next to Image (mobile), click the Connect dynamic source icon.
- Select the Metafield to display (e.g. Mobile featured image) and click Connect.
Metafields enable you to customize the functionality and appearance of your Shopify store by letting you save specialized information that isn't usually captured in the Shopify admin. Learn more about Metafields.