Shopify themes, liquid, logos, and UX
Hey,
i want different multicolumn sections on mobile / desktop, as i want the icons to be smaller on desktop as it seems pretty fat.
Can anyone please give me the code to have different multicolumn sections on mobile/desktop.
And maybe a code to make the Icons smaller on desktop!
Thanks in advance!
https://87fdxasaqjlvfzga-85421687108.shopifypreview.com
burtah
To display different multicolumn sections for mobile and desktop, you can create two separate sections in your Liquid code, one for desktop and one for mobile, and hide them based on the screen size using CSS.
add this to your code
<!-- Multicolumn section for desktop -->
<div class="multicolumn-section desktop-only">
<!-- Your desktop multicolumn content -->
</div>
<!-- Multicolumn section for mobile -->
<div class="multicolumn-section mobile-only">
<!-- Your mobile multicolumn content -->
</div>
CSS to hide/show the sections based on screen size
.desktop-only {
display: block;
}
.mobile-only {
display: none;
}
@media (max-width: 767px) {
.desktop-only {
display: none;
}
.mobile-only {
display: block;
}
}
/* Default icon size for mobile */
.icon {
width: 50px;
height: 50px;
}
/* Smaller icons for desktop */
@media (min-width: 768px) {
.icon {
width: 30px;
height: 30px;
}
}
If this fixed your issue, likes and accepting as a solution are highly appreciated
| Build an online presence with our custom-built Shopify Theme: EcomifyTheme
| Check out our reviews: Trustpilot Reviews
| We are Shopify Partners: EcomGraduates Shopify Partner
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025