Skip to main content
The Custom CSS settings allow you to add custom CSS code to style your bundle widgets beyond the built-in color and label options. This gives you complete control over the appearance and behavior of bundle elements. The same CSS is applied on Bundles (product page), Cart page offers, and Cart drawer offers.
To style one bundle only, or to add your own HTML to it, use Custom code in that bundle’s editor. See Custom code for one bundle.

Accessing custom CSS settings

  1. Open the Product Bundles app
  2. Click Settings in the left navigation
  3. Select the Custom CSS tab

CSS editor

Custom CSS field and Save custom CSS
The Custom CSS page has a code editor for writing CSS. It highlights syntax, shows line numbers, suggests CSS properties as you type, and previews changes before you apply them.

Available CSS selectors

Target specific bundle elements using these classes. Widget classes start with tb- and the cart upsell uses cart-upsell- classes. Bundle types draw some elements with different classes, so each element lists every class that applies.

Widget container

Bundle title

Product list

Pricing

Button

Cart banner

Example customizations

Rounded modern style

Minimal clean design

Vibrant bold style

Animation and interactions

Mobile-optimized

Best practices

Begin with small changes and test before adding complex styles. Build up gradually.
Target bundle elements specifically (e.g., .tb-add-to-cart) rather than generic selectors that might affect your entire site.
Check your custom CSS in Chrome, Safari, Firefox, and Edge. Some CSS properties behave differently across browsers.
Always include mobile-specific styles. More than 50% of shoppers use mobile devices.
Avoid complex animations or excessive CSS that could slow page load times.
Add comments to explain what each section does for easier future maintenance.

CSS tips and tricks

Use CSS variables for consistency

Improve accessibility

Smooth transitions

Saving and applying CSS

1

Write your CSS

Add your custom CSS in the editor
2

Preview (optional)

Use the preview feature to see changes before saving
3

Save

Click Save to apply your custom CSS
4

Test

Visit your store and check the widgets on product and cart pages
Changes apply immediately to all bundle widgets across your store.

Custom code for one bundle

Each bundle can have its own CSS and HTML. They apply only to that bundle’s widget, so other bundles keep their look.
  1. Open the bundle in the editor.
  2. Turn on Custom code.
  3. Add your styles under Custom CSS and your markup under Custom HTML.
  4. Check the result in the preview, then click Save.
Custom CSS uses the same classes listed above. The selectors match only inside this bundle’s widget, including the widget container itself, so you don’t need an extra class to target it. Your shop-wide CSS from Settings still applies, and the bundle’s CSS comes after it.
Custom HTML shows at the bottom of the bundle’s widget, for example a shipping note or a size guide link. Scripts, iframes, <style> and <svg> elements, inline event handlers such as onclick, and links other than web, mailto: and tel: links are removed, so the HTML can’t run code or restyle the rest of the page. Put styles under Custom CSS instead.
Each field holds up to 20,000 characters. To remove a bundle’s code, turn Custom code off and confirm.
Bundle CSS needs a browser that supports CSS @scope (current Chrome, Edge, Safari and Firefox). Older browsers skip the bundle’s CSS and show the widget’s normal style.

Troubleshooting

CSS not applying:
  • Check for syntax errors (missing semicolons, brackets, etc.)
  • Verify class names are correct
  • Clear browser cache and check in incognito mode
  • Check browser console for CSS errors
Styles being overridden:
  • Your theme CSS might have higher specificity
  • Try more specific selectors or use !important sparingly
  • Inspect elements with browser developer tools to see which styles apply
Mobile layout broken:
  • Add @media queries for responsive design
  • Test on actual mobile devices
  • Check for fixed widths that don’t scale
Performance issues:
  • Remove complex animations
  • Optimize heavy styles
  • Use simple CSS properties

Getting help with CSS

If you need help with custom CSS:
  • Browser DevTools: Use Chrome/Firefox DevTools to inspect elements and test styles live
  • CSS documentation: Reference MDN Web Docs for CSS properties
  • Support: Contact support@getappfox.com for assistance
Before adding custom CSS, explore the built-in color and label customization options. They’re easier to maintain and work well for most needs. Use custom CSS only when you need styling beyond those options.