How can I make a page on my site only visible on mobile?

How can I make a page on my site only visible on mobile?

kenzkirk16
New Member
5 0 0

Hello! I need to make one of the pages on my site visible only on mobile. The contents are too stretched out on desktop. Any idea how to do this? Website: pippbaby.com Page: Freebies.

Replies 7 (7)

Wish-It
Shopify Partner
151 37 41

You can add this CSS to make it not look too stretched on desktop, it would be a better experience than completely hiding it on desktop.

@media only screen and (min-width: 760px){
#freebies main#MainContent > div {
    max-width: 600px;
    margin: 0 auto;
}
}

 

I am founder of WishIt.app, you can create any theme edit task on our app - WishIt.app : Custom CSS / JS and we will do it for you. The first task is FREE!

Don't forget to checkout our reviews on Shopify AppStore.
kenzkirk16
New Member
5 0 0
Where exactly would I add this and in what exact format? Thanks!
Wish-It
Shopify Partner
151 37 41

Add it at the end of theme.css file (or themes.scss.liquid file), or you can also find apps on Shopify AppStore to add custom CSS / JS 

I am founder of WishIt.app, you can create any theme edit task on our app - WishIt.app : Custom CSS / JS and we will do it for you. The first task is FREE!

Don't forget to checkout our reviews on Shopify AppStore.
kenzkirk16
New Member
5 0 0

Thank you! Can I also do that for this page? https://pippbaby.com/pages/contact

 

The top graphic is also huge on desktop but perfect on mobile.

Wish-It
Shopify Partner
151 37 41

Yes, add this CSS,

#contact-us .brick__block__image {
    max-width: 760px;
    margin: 0 auto;
}

 

I am founder of WishIt.app, you can create any theme edit task on our app - WishIt.app : Custom CSS / JS and we will do it for you. The first task is FREE!

Don't forget to checkout our reviews on Shopify AppStore.
kenzkirk16
New Member
5 0 0

Thanks! Last thing - can I also do this for my homepage images that are super stretched out on desktop but perfect on mobile! Thank you so much - this has been SO helpful!

Wish-It
Shopify Partner
151 37 41

On homepage if you reduce the banner width it will also impact the rest of the banners, check screenshot. It will require code level change to customize section to have adjustable width, I'll need theme access to do that change.

WishIt_1-1667460959962.png

 

 

I am founder of WishIt.app, you can create any theme edit task on our app - WishIt.app : Custom CSS / JS and we will do it for you. The first task is FREE!

Don't forget to checkout our reviews on Shopify AppStore.