How can I move my cart icon to the right top corner?

Topic summary

A user is attempting to reposition a cart icon to the top right corner of their Shopify store header but is unable to achieve the desired placement.

Current Status:

  • The user shared a screenshot showing the cart icon’s current position
  • Code snippets were provided (appears reversed/encoded in the post)
  • The store is password-protected, complicating troubleshooting efforts

Community Response:

  • Multiple users offered assistance but requested additional information
  • Helpers asked for the store URL and CSS code to diagnose the issue
  • One user requested password access to examine the page directly

Next Steps:

  • The original poster agreed to share the store password via direct message to enable hands-on troubleshooting
  • The discussion remains ongoing, awaiting CSS-based solution once access is granted
Summarized with AI on November 18. AI used: claude-sonnet-4-5-20250929.

Hello!

I’m trying to move this cart icon I added to the right top corner and I can’t figure out how. Can someone please help? Much appreciated!

{% if customer.name != blank %}
- {{- customer.name -}}

{% endif %}
{% else %}
- {{- 'layout.customer.log_in' | t -}}

{% endif %}
{% endif %}

- 

- {% if cart.item_count == 0 %}

  {{- 'layout.general.checkout' | t -}}

  {% else %}
  {% assign checkout_url = '/checkout' %}

  {% for locale in shop.enabled_locales %}
  {% if locale.primary == true %}
  {% assign defaultLocale = locale.iso_code %}
section .icon-cart img {
  max-width: 10%;
  height: auto;
}

@hellocc - can you please share this page link? it will need css

Hey @hellocc
Kindly share your Store URL and Password if enabled

Thank you for responding, Suyash! The site is password protected, please send a request for access. The admin url is ad6568.myshopify.com

@hellocc - I can send request, but that would be collab request, instead can you share password here? you can DM or send on email if you want to keep it private, so I can check this page

Yes, of course! I understand. Thank you again, I will DM the password.