Product banner
Updated Oct 15, 20262 min read
On this page (6)
The product banner is a single-line message on the product page that advertises the discount running on that product — for example Get 20% off with code SAVE20. It is offered on campaigns whose discount type is Order Discount or Multi Products Discount.
Add it
- Open the campaign's Blocks page and select the Product page tab.
- Click Add campaign block and choose Banner.
- Copy the App block ID, add the Hype: Product Banner block in your theme editor, and paste the ID into its App identifier field. Full steps: Adding a block to your theme.
- Click Next, write the message, and save.
Content settings in the Hype admin
- Message — the banner text.
- Icon — a filled or outlined icon, an emoji, or none.
The message accepts two variables: {{discount_code}} and {{discount}}. See Variables you can use in block text.
Style settings in the theme editor
Open the Hype: Product Banner block.
| Setting | Options | Default |
|---|---|---|
| App identifier | The App block ID from the admin | Hype Banner |
| Background style | Solid color (default), Magic gradient, Electric horizon, Neon sunset, Tropical burst, Cyber fusion, Vibrant dawn, Laser pulse, Digital candy, Future glow | Solid color |
| Background color | Used only when Background style is Solid color | #000 |
| Text color | #fff | |
| Text size | 5px to 40px | 14px |
| Border radius | 0px to 100px | 0px |
| Text Alignment | Left, Center | Center |
| Font weight | Regular, Bold | Regular |
| Box shadow | None, Active | Active |
| Block padding | Vertical padding, in pixels | 8 |
| Inline padding | Horizontal padding, in pixels | 15 |
| Maximum width | 50% to 100% | 100% |
| Custom CSS | Extra styles for the product banner | empty |
| Custom JavaScript | Extra script for the product banner | empty |
The App identifier must match the App block ID from the Hype admin, or the banner renders nothing.
Preview
Inside the Shopify theme editor the block renders a placeholder banner so you can style it without an active campaign.
When it does not appear
- The Hype: Discounts app embed is off.
- The App block ID in the theme does not match the one in the admin.
- The campaign is not active, or the shopper's market is not targeted.
- The product on screen is not covered by the campaign's discount rules.
- The change is less than 10 minutes old; see Clearing the cache.
Related
Was this article helpful?
Related articles
Still stuck?
Ask a follow-up and we'll see it came from “Product banner”.
Opens chat with your question and a link to this article.