How can I adjust the cart bubble position in the Dawn theme?

Topic summary

A custom cart icon in the Dawn theme is approximately three times wider than the original, causing the cart bubble notification to appear in the wrong position—not aligned over the new icon.

Additional Issue:

  • A mauve color state for the activated bubble is also not displaying correctly.

Solution Provided:
Add custom CSS to the theme.liquid file within the <head> tag:

  • Target .cart-count-bubble with position: absolute, top: 11px, and left: 42px (all marked !important)
  • Target #cart-icon-bubble with position: relative

This successfully repositioned the bubble over the wider icon.

New Problem:
The wider cart icon now causes slight horizontal scrolling on mobile devices, pushing the cart count number off-screen. The user is seeking guidance on adjusting padding or other settings to prevent this overflow issue.

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

Someone updated the cart icon on this site with an icon that’s about 3 times the width of the original when something is added to the cart, but they didn’t know how to update the code, so the cart bubble now appears in the original place on the screen. Can I adjust the code somewhere to move the bubble so it appears over the square again? I believe there’s also supposed to be a mauve color state for the bubble when it’s activated. I found some code for that but it’s not appearing either.

https://annamuseo.com/cart - Dawn theme

Hi @stribley ,

  1. Go to admin → Select the theme you are using → Edit code

  1. Search for theme.liquid file and add this code behind the tag

    {% style %}
      .cart-count-bubble {
          position: absolute;
          top: 11px !important;
          left: 42px !important;
      }
      
      a#cart-icon-bubble {
          position: relative;
      }
    {% endstyle %}

Hope it helps @stribley

Result:

1 Like

Fantastic. That worked. Thank you so much!

One more related question, sorry. This seems to cause some slight horizontal scrolling in mobile due to the wider cart icon, too, when an item is added, which pushed the number off-screen. Is there somewhere I can change the padding or a setting to make everything fit? I can’t seem to find that.