Show only on desktop

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 :heart:

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

1 Like

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;
}

}

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!

Hi,

thanks but unfortunately it is not working

Hello

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

@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.

Hello

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

@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:

Still nothing just adds the code under it

1 Like

@Toypop , Where did you put the code?

Toypop_0-1730496992173.png

Here

@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.

Sadly same thing

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

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