Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
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.
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;
}
}
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
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.
Yes, add this CSS,
#contact-us .brick__block__image {
max-width: 760px;
margin: 0 auto;
}
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!
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.
Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025