Add custom CSS to a deal and style one deal bar
Use Custom Styles in the deal editor to change the widget with CSS, for all deals or one deal, and target one bar with data-deal-bar-id.
Custom Styles let you change the look of the widget with your own CSS, when the deal's style settings do not have the option you need.
Add custom CSS
- Open the deal and open the Style section.
- Turn on Custom Styles.
- Choose a tab:
- All deals: the CSS applies to every deal that has Custom Styles on.
- This deal: the CSS applies to this deal only.
- Write your CSS in the editor, then save the deal.
The app limits your CSS to the deal's widget, so it does not change the rest of your product page. You do not need <style> tags: the app removes them.
Build a box pages have their own custom CSS: in the Build a box editor, open Style.
Classes and attributes you can target
| Element | Selector |
|---|---|
| Every deal bar | .kaching-bundles__bar |
| The selected bar | .kaching-bundles__bar--selected |
| One bar | .kaching-bundles__bar[data-deal-bar-id="..."] |
| A free gift | [data-free-gift-id="..."] |
| An upsell | [data-upsell-id="..."] |
| The crossed-out price of a bar | .kaching-bundles__bar-full-price |
There is no class for the position of a bar (first, second). Use the bar's ID.
Style one deal bar
- Open your product page on your store.
- Right-click the bar and click Inspect.
- Find the element with the class
kaching-bundles__barand copy the value of itsdata-deal-bar-id. - Use it in This deal, for example:
.kaching-bundles__bar[data-deal-bar-id="paste-the-id-here"] {
border-width: 3px;
}The bar keeps its ID when you edit the deal. A bar that you delete and add again gets a new ID.
Hiding parts of a bar
Before you hide something with CSS, check the deal settings. These options show content only for the bar the customer selected:
- Show products only when selected on Bundle and Mix & Match bars
- Show highlights only when selected
- Visible only when bar is selected on bar upsells
- Show product options only when selected on upsells
There is no setting to hide the other bars when the customer selects one.
Need help? Drop us a message in the live chat, and we'll sort it out together.