Overview
If you want to change the font size of specific text elements in your cart (such as upsell titles or variant options), you can do so using Upcart’s built-in Custom CSS editor.Step 1: Inspect the element
- Open your storefront and launch the Upcart drawer.
- Right-click on the element whose font size you want to change.
- Choose Inspect from your browser’s context menu to open the Developer Tools.
- Locate the element’s class name in the HTML panel.
Example:upcart-item-option
Step 2: Access the custom CSS editor
- Go to Shopify Admin > Apps > Upcart
- Open the Cart Editor
- Click on Settings
- Find the Custom CSS section
Step 3: Write your custom CSS
In the CSS input field:- Start with a period (
.) followed by the class name - Add
{ font-size: 14px !important; }(or your desired size)
.upcart-item-option is a V1 class. On V2, the equivalent line-item variant text is .upcart-public-component-product-tile__variant. See the V2 CSS selector library for the full set.
Use !important only if the style is not being overridden after the change.
Step 4: Save and test
- Click Save in the Cart Editor
- Refresh your storefront page
- Open the cart drawer and confirm the font size has updated