Rich text mixing with subtotal in cart page Dawn 15V

Topic summary

A user is experiencing a layout issue on their Shopify Dawn 15V cart page where custom rich text is overlapping with the subtotal and tax note sections.

The Problem:

  • Rich text was inserted between the subtotal and tax note using JavaScript in theme.liquid
  • When products are added to cart or quantities are increased, the rich text element visually mixes/overlaps with the subtotal and tax information
  • Screenshots were provided showing the layout breaking

Technical Details:

  • The code uses insertAdjacentHTML to inject a custom div with class “custom-richtext” after the totals element
  • The inserted content includes “Incl. of all taxes and costs”
  • Store URL was shared for reference

Current Status:
The issue remains unresolved with no responses or solutions provided yet. The user is seeking help to fix the positioning/display conflict between the custom rich text and cart totals.

Summarized with AI on November 6. AI used: claude-sonnet-4-5-20250929.

Hiii

I added rich text in bw subtotal and tax note and when I add product in cart page and increase the quantity or even add a new product then the rich text get mixed with subtotal and tax note. Please check the screenshot below

I added this code to add rich text in theme.liquid -

store url - https://5a3cf5-fc.myshopify.com/