Skip to main content

Custom CSS [OCU]

Add custom CSS to apply advanced styling to your OCU offers and slide cart drawer!

Jeff Maxfield avatar
Written by Jeff Maxfield
Updated today

πŸš€ OCU Plus Feature πŸš€

Use Custom CSS to tailor the appearance of One Click Upsell (OCU) offer components beyond the default styling, so they better match your brand and theme. This feature lets you target and override specific elements within OCU using your own CSS rules. Custom CSS can be applied across the following OCU offer types and the slide cart drawer:

  • Product Page Widget

  • Pre-Purchase Upsell

  • Cart Drawer Upsell

  • Slide Cart Drawer

Whether you’re adjusting colors, spacing, typography, or visibility of specific elements, custom CSS gives you precise control over how these upsell offers look on your store.

The Custom CSS field is located at Settings > General within the OCU app.

Customize the appearance of your upsell offers by adding your own CSS styles. Just click the toggle to enable this setting, add your own custom CSS and click Save:

To apply your custom styles, use the relevant OCU classes to override the default styles for each upsell type. You can find the classes you want to override by inspecting the offer's template using your browser's developer tools.

You can also wrap your custom CSS with OCU wrapper classes to apply styles to specific offers.

πŸ“ Styles outside of the OCU wrapper classes will not be applied.

OCU classes:

  • .ocu-pre (Pre-purchase offers)

  • .ocu-widget (Product page widgets)

  • .ocu-cart-upsell (Cart Drawer upsell offers)

  • .ocu-cart-drawer (Slide Cart Drawer )

πŸ“ <style> tags are not required. To view your applied styles, test the offer(s) live on your storefront, as Custom CSS will not be visible within the OCU offer editors directly.

Did this answer your question?