Show only on desktop

Show only on desktop

Toypop
Excursionist
31 0 10

Hello

I have a problem I can't make this photo to show only on desktop I did everything every code but nothing worked 

Did one for only mobile but for desktop version nothing seems to work.

please help me out ❤️

 

Toypop_0-1730407143832.png

 

https://www.toypop.lt/pages/kontaktai

Replies 14 (14)

Abdosamer
Shopify Partner
1040 188 225

Hi @Toypop , go to section-image-banner.css and add the following code to the end of it :

@media (max-width:799px){
div#Banner-template--22284692717833__image_banner_GjkxaY .banner__media {
    display: none;
}

}
Buy me a Coffee
Email : abdelrahamansamer71@gmail.com
Chat on WhatsApp
My work
Toypop
Excursionist
31 0 10

Hi, 

thanks but unfortunately it is not working

Abdosamer
Shopify Partner
1040 188 225

@Toypop , it seems that you have other code that hide the whole section on mobile screen, try to remove this code first and then add my code to only hide the image.

Buy me a Coffee
Email : abdelrahamansamer71@gmail.com
Chat on WhatsApp
My work
Toypop
Excursionist
31 0 10

Hello 

thanks for suggestion but sadly it doesn't work, have a look

Toypop_0-1730488706622.png

 

Abdosamer
Shopify Partner
1040 188 225

@Toypop , Go to section-image-banner.css and add the following code at the end of it :

@media (max-width:800px){
.banner__media.media.banner__media-half {
    display: none;
}


}

Result:

Abdosamer_0-1730489471569.png

 

 

Buy me a Coffee
Email : abdelrahamansamer71@gmail.com
Chat on WhatsApp
My work
Toypop
Excursionist
31 0 10

Toypop_0-1730490243795.png

Still nothing just adds the code under it

 

Abdosamer
Shopify Partner
1040 188 225

@Toypop , Where did you put the code?

Buy me a Coffee
Email : abdelrahamansamer71@gmail.com
Chat on WhatsApp
My work
Toypop
Excursionist
31 0 10

Toypop_0-1730496992173.png

Here 

 

Abdosamer
Shopify Partner
1040 188 225

@Toypop , This is the  image-banner.liquid , you should put the code in section-image-banner.css , you can find it in the assets folder of your theme.

Buy me a Coffee
Email : abdelrahamansamer71@gmail.com
Chat on WhatsApp
My work
Toypop
Excursionist
31 0 10

Toypop_0-1730553565588.png

Toypop_2-1730553733355.png

 

Sadly same thing 

 

Abdosamer
Shopify Partner
1040 188 225

@Toypop , Now your image doesn't show on mobile, it shows only on desktop:

Abdosamer_0-1730564720690.png

 



Buy me a Coffee
Email : abdelrahamansamer71@gmail.com
Chat on WhatsApp
My work
Toypop
Excursionist
31 0 10

Sorry I confused you a bit i need to leave one section only on desktop  and hide it from pc 😞

 

Made4uo-Ribe
Shopify Partner
10192 2418 3063

Hi @Toypop 

This may help, You can assign different image on the desktop and the mobile screen. 

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Toypop
Excursionist
31 0 10

Hello

Thanks but sadly it don't work and on top of that it only messes with my site