Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Hide First Image On Product Page (Dawn Theme)

Solved

Hide First Image On Product Page (Dawn Theme)

GVH
Excursionist
11 0 4

Hi,

 

Is there anyway to hide the main media item (the first product image in shopify) only on the product page.
So, the main media item will show on the home page & collection page, but will be hidden on the product page. The product page will only show the second image onwards from the Shopify backend.

Would someone be able to assist with this issue?

 

I am currently using the Dawn Theme 2.3.0

 

https://globalvirginhair.com/

 

Thanks, 

GVH

Accepted Solution (1)
KetanKumar
Shopify Partner
37409 3661 12115

This is an accepted solution.

@GVH 

thanks for url, can you please  try this code

1. Go to Online Store->Theme->Edit code
2. Asset->/section-main-product.css ->paste below code at the bottom of the file.

.product__media-item:first-child {display: none;}

 

 

If helpful then please Like and Accept Solution. Partnership of your ️ Coffee Tips and my code can bring miracles.
Want to modify or custom changes on store Hire Me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing

View solution in original post

Replies 46 (46)

KetanKumar
Shopify Partner
37409 3661 12115

@GVH 

sorry for that issue but how can i check i can't see multi product image any product 

If helpful then please Like and Accept Solution. Partnership of your ️ Coffee Tips and my code can bring miracles.
Want to modify or custom changes on store Hire Me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
GVH
Excursionist
11 0 4

Hi @KetanKumar , 

 

Thanks for responding. 

 

There are multiple product images on many of the items. The ones that only currently have one image, I will upload another onto. 

Is this something you can help me with?

 

KetanKumar
Shopify Partner
37409 3661 12115

@GVH 

yes, please send product url 

If helpful then please Like and Accept Solution. Partnership of your ️ Coffee Tips and my code can bring miracles.
Want to modify or custom changes on store Hire Me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
GVH
Excursionist
11 0 4

Hi @KetanKumar 

 

here is one https://globalvirginhair.com/products/3-bundle-collection-deepwave , but it would be for all the products on the website. 

 

KetanKumar
Shopify Partner
37409 3661 12115

This is an accepted solution.

@GVH 

thanks for url, can you please  try this code

1. Go to Online Store->Theme->Edit code
2. Asset->/section-main-product.css ->paste below code at the bottom of the file.

.product__media-item:first-child {display: none;}

 

 

If helpful then please Like and Accept Solution. Partnership of your ️ Coffee Tips and my code can bring miracles.
Want to modify or custom changes on store Hire Me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
GVH
Excursionist
11 0 4

Thanks! @KetanKumar 

KetanKumar
Shopify Partner
37409 3661 12115

@GVH 

its my pleasure  to help us 

If helpful then please Like and Accept Solution. Partnership of your ️ Coffee Tips and my code can bring miracles.
Want to modify or custom changes on store Hire Me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
AndreasFandango
Shopify Partner
10 0 4

Is there a way to only show the first image and not the others?

KetanKumar
Shopify Partner
37409 3661 12115

@AndreasFandango 

yes, please share store url so i will check and update

If helpful then please Like and Accept Solution. Partnership of your ️ Coffee Tips and my code can bring miracles.
Want to modify or custom changes on store Hire Me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
AndreasFandango
Shopify Partner
10 0 4

https://rumags.myshopify.com/

password 1234

 

want to remove the thumbnail under the photo or just remove all product photos except the first one.

 

 

KetanKumar
Shopify Partner
37409 3661 12115

@AndreasFandango 

great thanks for share us yes, please add this code
1. Go to Online Store->Theme->Edit code
2. Asset->/base.css ->paste below code at the bottom of the file.

.product--small .thumbnail-list.slider--tablet-up .thumbnail-list__item.slider__slide:first-child {
    display: none !important; 
}

 

If helpful then please Like and Accept Solution. Partnership of your ️ Coffee Tips and my code can bring miracles.
Want to modify or custom changes on store Hire Me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
AndreasFandango
Shopify Partner
10 0 4

Thanks @KetanKumar . The code worked when I removed :first-child, but the arrows is still there. Is it easier if I change from thumbnail carousel to stacked?

KetanKumar
Shopify Partner
37409 3661 12115

@AndreasFandango 

yes, please 

If helpful then please Like and Accept Solution. Partnership of your ️ Coffee Tips and my code can bring miracles.
Want to modify or custom changes on store Hire Me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
AndreasFandango
Shopify Partner
10 0 4

Thanks @KetanKumar . I have now changed to stacked. Do you have a code for me boss?

AndreasFandango
Shopify Partner
10 0 4

Do you have a new code for me after stacking the images instead of carousel thumbnail?
Skjermbilde 2022-11-21 kl. 09.39.11.png

KetanKumar
Shopify Partner
37409 3661 12115

@AndreasFandango 

oh sorry for late here yes its work

If helpful then please Like and Accept Solution. Partnership of your ️ Coffee Tips and my code can bring miracles.
Want to modify or custom changes on store Hire Me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
heirlooms
Tourist
4 0 3

Hi Ketan, 

 

I have craft theme and this is not working. Could you please help me? 

 

KetanKumar
Shopify Partner
37409 3661 12115

@heirlooms 

can you please share store url so i will check and let you know 

If helpful then please Like and Accept Solution. Partnership of your ️ Coffee Tips and my code can bring miracles.
Want to modify or custom changes on store Hire Me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
heirlooms
Tourist
4 0 3

sure, it is heir-looms.myshopify.com

heirlooms
Tourist
4 0 3

its, heir-looms.myshopify.com... do you think you can help me please? 

KetanKumar
Shopify Partner
37409 3661 12115

@heirlooms 

oh sorry for late reply yes please add this code
1. Go to Online Store->Theme->Edit code
2. Asset->/base.css ->paste below code at the bottom of the file.

.thumbnail-list.slider--tablet-up .thumbnail-list__item.slider__slide:first-child {
    display: none !important;
}



If helpful then please Like and Accept Solution. Partnership of your ️ Coffee Tips and my code can bring miracles.
Want to modify or custom changes on store Hire Me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
Witness
Tourist
23 0 2

Is there anyway to do this with the 2nd image?

I don't know what I'm doing
KetanKumar
Shopify Partner
37409 3661 12115

@Witness 

oh sorry for that issue can you please share store url so i will check and let you know 

If helpful then please Like and Accept Solution. Partnership of your ️ Coffee Tips and my code can bring miracles.
Want to modify or custom changes on store Hire Me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
heirlooms
Tourist
4 0 3
You can hide the first two images. May I know why hide the second image?
KetanKumar
Shopify Partner
37409 3661 12115

@heirlooms 

oh sorry for that issue can you please send store url so i will check and and let you know 

If helpful then please Like and Accept Solution. Partnership of your ️ Coffee Tips and my code can bring miracles.
Want to modify or custom changes on store Hire Me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
thewavv
Tourist
4 0 0

hello! first of all thank you so much for all the people you help. i was wondering if you could help me accomplish this as well. i tried the code you suggested but it removed the main product image display box on my product page instead of the first thumbnail.

 

my url is http://thewavv.myshopify.com

 

thanks for any help you may be able to provide!

 

Abudaud
Tourist
8 0 0

can you do it for IMPact Theme?

crepscity
Explorer
71 0 21

Hi Ketan,

 

How can i do this for a *specific collection of products as i don’t want to show the first image for that 1 collection only cause the first image is for homepage display only. Im using Dawn Theme.

KetanKumar
Shopify Partner
37409 3661 12115

@crepscity oh sorry for that issue 

if possible to share more details like store url collection name or url so i will check and let you know proper solution 

If helpful then please Like and Accept Solution. Partnership of your ️ Coffee Tips and my code can bring miracles.
Want to modify or custom changes on store Hire Me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
crepscity
Explorer
71 0 21
KetanKumar
Shopify Partner
37409 3661 12115

@crepscity thanks for details  

i have checked your all products only 1 image i can't see multiped product image can you please show me 

If helpful then please Like and Accept Solution. Partnership of your ️ Coffee Tips and my code can bring miracles.
Want to modify or custom changes on store Hire Me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
crepscity
Explorer
71 0 21

*Note this section is created on beae editor however, im sure we can still target the collection or products individually to hide the first image on the product page only, without targeting all products on my store.

 

Screenshot 2024-07-29 at 15.22.59.pngScreenshot 2024-07-29 at 15.26.22.pngScreenshot 2024-07-29 at 15.27.43.png

 

KetanKumar
Shopify Partner
37409 3661 12115

@crepscity Thanks bt i can't see 

KetanKumar_0-1722265161340.png

 

i think you have provide wrong url please give me your testing theme url

If helpful then please Like and Accept Solution. Partnership of your ️ Coffee Tips and my code can bring miracles.
Want to modify or custom changes on store Hire Me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
crepscity
Explorer
71 0 21

You can observe the testing theme/products with the links i have shared above. I will add the multiple product images later in the testing products once the first image is removed.

 

Hope you understand.

KetanKumar
Shopify Partner
37409 3661 12115

@crepscity without url i can't see code but can you try this code

1. Go to Online Store->Theme->Edit code
2. Asset->/section-main-product.css ->paste below code at the bottom of the file.

.product__media-item:first-child {display: none;}

 

If helpful then please Like and Accept Solution. Partnership of your ️ Coffee Tips and my code can bring miracles.
Want to modify or custom changes on store Hire Me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
crepscity
Explorer
71 0 21

I have shared the url: crepscity.com

 

The code you said to try semi-worked but it hid every first image product from my hole store. I want to target that 1 collection only?

KetanKumar
Shopify Partner
37409 3661 12115

@crepscity yes i have try but it can be done some customization code

If helpful then please Like and Accept Solution. Partnership of your ️ Coffee Tips and my code can bring miracles.
Want to modify or custom changes on store Hire Me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
crepscity
Explorer
71 0 21

so, can you provide me some code ?

KetanKumar
Shopify Partner
37409 3661 12115

@crepscity if possible to add me staff account so  i will try to code draft theme and let you know 

If helpful then please Like and Accept Solution. Partnership of your ️ Coffee Tips and my code can bring miracles.
Want to modify or custom changes on store Hire Me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
crepscity
Explorer
71 0 21

I need your email to add you as staff and what store permissions do you need access to?

 

Or you can request?

KetanKumar
Shopify Partner
37409 3661 12115

@crepscity yes please here 

Email: bamaniyaketan.sky@gmail.com
i need only theme code access no more 

If helpful then please Like and Accept Solution. Partnership of your ️ Coffee Tips and my code can bring miracles.
Want to modify or custom changes on store Hire Me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
crepscity
Explorer
71 0 21

I invited you.

KetanKumar
Shopify Partner
37409 3661 12115

@crepscity thanks 

i have copy of live theme and test code for new theme see the attach 

KetanKumar_0-1722362682706.png

 

If helpful then please Like and Accept Solution. Partnership of your ️ Coffee Tips and my code can bring miracles.
Want to modify or custom changes on store Hire Me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
crepscity
Explorer
71 0 21

i dont understand, i dont see any changes ?

crepscity
Explorer
71 0 21

Hi, I added this code below on main-product-liquid which targets the relevant product image that has the alt text 'hide-on-product-page' and after inserting the alt it worked and hid the product image on product page. Hovever, now i want to hide that specific image on the collection page also, but im not sure how. 

 

<script>
document.addEventListener('DOMContentLoaded', function() {
// Find all images on the product page
var images = document.querySelectorAll('.product__media-item img');

// Loop through the images and hide the one with the specific alt text
images.forEach(function(image) {
if (image.alt === 'hide-on-product-page') {
image.closest('.product__media-item').style.display = 'none';
}
});
});
</script>

 

Screenshot 2024-07-31 at 15.38.49.pngScreenshot 2024-07-31 at 15.38.35.png

crepscity
Explorer
71 0 21

Hi there, i was able to add code and hide the first image only with the product images that has the alt text 'hide-on-product-page' 

 

Now when i add to cart, the first image that is hidden shows on the cart page? How can i hide the first image on cart page also?

 

Screenshot 2024-08-05 at 23.00.31.pngScreenshot 2024-08-05 at 23.01.36.png

 

 

Thank you in advance.