How-to: Add hero banner to Shopify theme

This guide will help you set up the hero banner in your Shopify store using the theme editor. You can display the banner on either your homepage or a specific collection page selected during campaign creation.

On the homepage, you can choose to show a particular sale by entering the Sale ID (optional). If you don’t set a Sale ID, the most recent campaign with "Show hero banner on homepage" enabled will automatically display.

Step 1: Add the Hero Banner App Block

  1. Navigate to Online Store > Themes in your Shopify admin panel.
  2. Click Customize next to your active theme to open the Theme Editor.
  3. Navigate to where you want to insert the hero banner (Homepage or Collection page)
  4. In the Theme Editor, locate the Sections panel on the left.
  5. Scroll down and click Add Section or Add Block (depending on the theme layout).
  6. Search for and select the Disco Hero Banner app block from the list.

Step 2: Adjust position and save

  1. Move the section up or down as you please.
  2. Once you're satisfied with the settings, click Save in the Theme Editor.
  3. Preview your store to ensure the hero banner displays as expected.


Showing Multiple Hero Banners on the Homepage

You can add multiple hero banners to your homepage by adding the app block several times. Use the Sale ID field in each block to specify which sale to show.

Finding Your Sale ID

  1. Go to Campaigns: After creating your sale, navigate to Disco > Campaigns.
  2. Edit the Campaign: Find your sale, then click Edit.
  3. Copy the Sale ID: In your browser's URL bar, find the alphanumeric code at the end (e.g., 8f336858-236d-4ed7-b1dc-b7d906a16ba6 ). This is your Sale ID—copy it.

Specifying Sale ID in Hero Banner

  1. Click the Disco Hero Banner app block in the left hand side menu to open it settings. Find the Sale ID field.
  2. Enter the Sale ID associated with the promotion you’d like displayed on the banner (if applicable). Leaving this blank will show the most recent campaign with "Show hero banner on homepage" enabled.

Still need help? Contact Us Contact Us