Change the font of the product when viewed in the cart slider.

Solved

Change the font of the product when viewed in the cart slider.

SamsLav
Tourist
6 1 1

I'd like to use Custom CSS to modify the product name font when shown in the cart/slider. I thought main-cart-items would work, but I'm struggling. Thank you!

Accepted Solution (1)
SamsLav
Tourist
6 1 1

This is an accepted solution.

The website is www.samslavender.com and the password is "SamsLavender_2025"

 

Thank you!

View solution in original post

Replies 5 (5)

TheScriptFlow
Shopify Partner
722 52 97

Hi @SamsLav,

Could you please share your Store URL and password (if applicable) so that I can review it and provide you with the appropriate solution code?

Looking forward to your response.

Thanks!

- Need a Shopify Specialist? Chat on WhatsApp Or Email at info@thescriptflow.com

- Boost Your Sales with Affiliate Marketing - UpPromote: Affiliate & Referral


- If my solution was helpful, mark it as a solution and hit the like button! And Wait Don't forget to Buy me a Coffee

SamsLav
Tourist
6 1 1

This is an accepted solution.

The website is www.samslavender.com and the password is "SamsLavender_2025"

 

Thank you!

B2Bridge
Trailblazer
365 75 94

Hi @SamsLav, you can follow these steps:

Step 1: Open Online Store -> Themes -> Edit code

Step 2: Find component-cart-items.css file

Step 3: Paste this code at the bottom of the file

.cart-item__name {
    font-family: "Poppins", sans-serif !important; //Replace with your taste
}

Result:

B2Bridge_0-1745808691100.png

If this helpful, please let us know by giving us a like and marking it as a solution. Thanks

 

B2Bridge: All-in-one B2B wholesale solution, enabling merchants to set up a complete B2B store quickly and without coding.
With features like customizable registration forms, customer segmentation, and tailored price lists, it simplifies wholesale management.
B2Bridge also includes a dedicated Quick Order page and flexible Net Payment Terms, streamlining operations for wholesalers and enhancing the buying experience.

SamsLav
Tourist
6 1 1

It worked! Thank you so much!

SamsLav
Tourist
6 1 1

Thank you again! Do you know how I'd change the font for the "Estimated Total" area of the cart? I used entered this in the css for the page:

h2 {
font-family: "Playfair Display", sans-serif !important;
}

 

It works when the cart is a page, but not when I choose to have a drawer. Any suggestions?

 

Thank you!