Remove the 'X' button from my product page

Remove the 'X' button from my product page

rene94
Explorer
65 1 11

Hi, I want to change the 'X' button to say 'CLOSE' in Times New Roman when you click on a product image to enlarge.

 

I'm using the dawn theme (https://41nc49jsxsxvgmgl-74826613002.shopifypreview.com)

Capture 4.PNG

Replies 7 (7)

BSSCommerce-HDL
Shopify Partner
2305 848 1064

Hi @rene94

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

BSSTechVenture_0-1716539613707.png

 

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

BSSTechVenture_1-1716539619574.png

 

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

.product-media-modal__toggle[aria-label="Close"] {
   display: none !important; 
}

Here is result: 

BSSTechVenture_2-1716539650575.png

 

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 😍

 

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

rene94
Explorer
65 1 11

Hi thanks for the reply, but i dont just want to remove it i want to replace it with the word CLOSE in the times new roman font 

BSSCommerce-HDL
Shopify Partner
2305 848 1064

Hi @rene94

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-media-modal__toggle {
    border: none !important;
    outline: none !important;
}

Step 4: Search file theme.liquid. Then insert this code to your file: 

BSSTechVenture_0-1716624913465.png

<script>
let btn_close_modal = document.querySelector('.product-media-modal__toggle');
if(btn_close_modal) {
  btn_close_modal.innerHTML = "Close";
}
</script>

Here is result; 

BSSTechVenture_1-1716625035997.png

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 😍

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

ZestardTech
Shopify Partner
5768 1051 1391

Hello There,

 

1. In your Shopify Admin go to online store > themes > actions > edit code
2. Find Asset > base.css and paste this at the bottom of the file:

 

.product-media-modal__toggle {
display: none;
}

 

ZestardTech_0-1716540050237.png

 

Want to modify or develop new app, Hire us.
If helpful then please Like and Accept Solution .
Email: [email protected]
Shopify Apps URL :- https://apps.shopify.com/partners/zestard-technologies
Custom Modifications Into Shopify Theme | Shopify Private App | SEO & Digital Marketing

EFOLI-Emilia7
Shopify Partner
349 11 38

Hello @rene94,

The preview link has been expired. can you please share another one so that I can check and suggest you a possible solution?

 

Thank you

banned
rene94
Explorer
65 1 11
EFOLI-Emilia7
Shopify Partner
349 11 38

Thanks for sharing.

Need to add code into base.css file

.product-media-modal__toggle{
    display: none !important;
}
banned