This article is also available in:

How to Use Custom HTML & Custom CSS in Your Cart

By using Custom HTML and Custom CSS, you can personalize the cart drawer to match your branding perfectly and add custom elements that boost trust and conversions.


What Can You Do with Custom HTML & CSS?




  • Trust Badges: Display "Money Back Guarantee", "Secure Checkout", or payment icons.
  • Benefits Lists: Highlight perks like "Free Shipping over $50" or "24/7 Support".
  • Interactive Widgets: Add custom coupon alerts, promo banners, or custom countdown timers etc...


🎨 Custom CSS / Animations: Modify the styling of any element inside the cart (fonts, spacing, button border-radius, color gradients) or add custom CSS animations.



⚙️ How to Set It Up


1️⃣. Open the app dashboard and click Edit on your current cart layout.
2️⃣. In the left menu, navigate to the Footer section.
3️⃣. Click on the "Add Custom HTML/CSS" option. A new Custom HTML/CSS section will automatically be added to your footer layout.
Open the newly added section and choose your desired Type:
💠 Liquid / HTML: To embed custom HTML tags, Liquid code, or custom scripts.
💠 CSS / Animation: To write custom CSS styles or animation rules.
4️⃣. Paste your code into the code editor block.
5️⃣. Click Save to apply your changes.



💡 Pro Tip: How to find element classes and use AI to write your CSS

If you don't know how to code, don't worry! You can easily find the class of any element using your browser and ask an AI (like ChatGPT or Gemini) to generate the CSS code for you.


Step 1: Find the Element's Class


  1. Open your online store and open your cart drawer.
  2. Right-click on the element you want to customize (e.g., the checkout button, a text price) and select Inspect
  3. A developer window will open. Look at the highlighted line of code and find the part that says class="..." (for example: class="rapi-cart-title").
  4. Double-click and copy that class name.


Step 2: Ask an AI to generate the CSS


Copy and paste the following prompt template into an AI, replacing the bracketed info with your needs:


"I am using a Shopify app. I want to change the style of an element with the class [Paste your class name here, e.g., .rapi-cart-title]. Can you write a clean CSS code to make it [Explain what you want, e.g., bold, red color, and 20px font size]? Only give me the raw CSS code inside a code block."


Simply copy the code generated by the AI and paste it into the Custom CSS box in the app!

Updated on: 18/09/2026

Was this article helpful?

Share your feedback

Cancel

Thank you!