How can I disable the collection image for the mobile view only?
I want to keep the collection image for the desktop version.
https://kainosbuy.com/collections/panel-parts
I’m using Ella theme version 6.6.1
A user seeks to hide collection banner images on mobile devices while keeping them visible on desktop for their Shopify store using the Ella theme version 6.6.1.
Proposed Solutions:
Three respondents offered similar CSS-based approaches:
theme.liquid file above the </body> tag using a media query targeting max-width 768pxbase.css file with @media (max-width: 768px) targeting .collection-banner with display: none !important;assets/base.css using @media only screen and (max-width: 768px) to hide .collection-bannerStatus: Multiple solutions provided with screenshots demonstrating results. All approaches use CSS media queries to selectively hide the collection banner on mobile viewports. The discussion appears resolved with actionable code snippets, though the original poster has not confirmed which solution was implemented.
How can I disable the collection image for the mobile view only?
I want to keep the collection image for the desktop version.
https://kainosbuy.com/collections/panel-parts
I’m using Ella theme version 6.6.1
Hello,
Please add the below code in theme.liquid above
Result:
If the above solution will be helpful please like the solution and accept it.
Thank you!
Hi @kainosbuy
You can try to follow this step
Step 1: Go to Edit code
Step 2: Find file base.css and add this code at the end of the file
@media (max-width: 768px) {
.collection-banner {
display: none !important;
}
}
Result
Best,
Liz
Hello @kainosbuy
Go to Online Store, then Theme, and select Edit Code.
Search for assets/base.css Add the provided code at the end of the file.
@media only screen and (max-width: 768px) {
.collection-banner {
display: none;
}
}