Publishing options
Get your galleries live on your Shopify store with these flexible publishing methods.
Auto-publish to pages
The easiest way to add galleries to your store pages.
Create new page with gallery
- Find your gallery in the gallery list
- Click Publish
- Select New page
- Choose gallery position on the page
- Click Save
Add to existing page
- Click Publish on your gallery
- Click Choose pages
- Select an existing page
- Choose where to place the gallery
- Click Save

Add to homepage and other pages
Use Shopify's app block to add galleries anywhere.
Using theme sections
- Go to Online Store > Themes
- Click Customize on your active theme
- Navigate to the page you want to edit
- Click Add section
- Select XO Gallery
- Enter your gallery ID
- Click Save
Finding your gallery ID
Your gallery ID appears in the gallery list - it's the number you'll need for sections.
Embed code method
For maximum control over gallery placement.
Getting the embed code
- Click Publish on your gallery
- Select Embed code
- Click Copy code
Using embed code
- Go to Online Store > Pages (or Blog posts)
- Edit the page where you want the gallery
- Click Show HTML to switch to HTML view
- Paste the embed code where you want the gallery
- Save the page
Page templates (Advanced)
Create reusable page templates with galleries built-in (Check the video from 1:00)
Create gallery page template
- Go to Online Store > Themes
- Click Customize
- Open the template dropdown at the top and choose Pages
- Click + Create template
- Name your template (e.g., "Gallery Page")
- Choose a base template
- Click Create template
Add gallery to template
- Click Add section
- Click Apps
- Select XO Gallery
- Configure your gallery settings
- Click Save
Apply template to pages
- Go to Online Store > Pages
- Edit the page you want to use the template
- In Template, select your gallery template
- Click Save
Remove galleries from pages
Remove auto-published galleries
- Go to Online Store > Pages
- Edit the page with the gallery
- Click Show HTML
- Find and delete the code with
class="xo-gallery"
- Save the page
Remove section galleries
- Go to Online Store > Themes
- Click Customize
- Find the XO Gallery section
- Click the section and select Remove
- Click Save
Publishing tips
- For homepages: Use sections for easy management
- For product pages: Embed code gives precise control
- For blog posts: Embed code works great in content
- For multiple similar pages: Create page templates
Next, learn about basic customization options.