Skip to main content
Custom CSS [OCU]

Add custom CSS to apply advanced styling to your OCU offers!

Jeff Maxfield avatar
Written by Jeff Maxfield
Updated over 2 weeks ago

πŸš€ OCU Plus Feature πŸš€

Custom CSS

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?