Move the (+) image magnifier on product page to top right

Topic summary

Goal: Move the (+) image magnifier icon from the top-left to the top-right on all product images across devices (Shopify).

Key steps proposed:

  • Add CSS in the theme’s stylesheet (e.g., base.css/theme.css/styles.css/theme.scss.liquid) to reposition the icon. Initial rule targeted .product__media-icon only on :hover/:focus within .product__modal-opener, setting position: absolute; top/right: 10px; left: auto; opacity: 1; with !important. This worked on desktop.
  • Another suggestion was to add code in theme.liquid after the , but the exact snippet content wasn’t provided in the thread.

Mobile fix and final solution:

  • Apply the positioning CSS directly to .product__media-icon globally (not just on hover/focus), ensuring the icon is always placed at top-right and visible on mobile and desktop. The use of !important forces it over theme defaults.

Outcome:

  • Screenshots indicate success on both desktop and mobile. No further issues reported; appears resolved.

Notes:

  • Images/screenshot attachments were used to demonstrate before/after results and confirm the fix.
Summarized with AI on December 28. AI used: gpt-5.

I need this change to apply to all products, viewed on all platforms.

Here’s one example: https://empiricalwater.com/products/empirical-water-glacial

I need the magnification button to be moved from top left of image to top right.

Any assistance with this would be greatly appreciated. Thanks so much!

Hi @empiricalarby ,

Step 1: Go to Shopify Admin → Online Store ->Theme → Edit code

Step 2: Search file base.css, theme.css, styles.css or theme.scss.liquid

Step 3: Insert the below code at the bottom of the file → Save

.product__modal-opener:hover .product__media-icon, 
.product__modal-opener:focus .product__media-icon {
     opacity: 1 !important;
     position: absolute !important;
     right: 10px !important;
     top: 10px !important;
     left: auto !important;
}

Here is result:

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you :heart_eyes:

1 Like

Hi @empiricalarby

Please add this code to theme.liquid file, after in Online Store > Themes > Edit code


1 Like

Thanks, this works on desktop. Can you make it work on mobile too?

Hi @empiricalarby , Pls insert this code to your file css:

.product__media-icon {
   opacity: 1 !important;
   position: absolute !important;
   right: 10px !important;
   top: 10px !important;
   left: auto !important;
}

Here is result:

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you :heart_eyes:

1 Like