Shopify themes, liquid, logos, and UX
Hi! I have been searching and searching for code and can't find code that will resize the featured collection product images for desktop. My desktop page looks terrible with the images taking up the entire homepage. I found an CSS code to add to each featured collection however, this changes both the mobile & desktop size making the mobile size tiny & desktop perfect. Desperate for help please !
Website: Charlie Helena Collection- Mum & Babe Outfits |Accessories | Boho Rugs – Charliehelenacollection
Desktop Images below for reference:
CSS code added that changes both Desktop & Mobile
Solved! Go to the solution
This is an accepted solution.
Yes, what I mean is you can add one of the two; if customizing is okay, then there's no need to add it in the theme.liquid
Your issue is that the image is resized and centered, however, the price section is still left-aligned.
Please change to it
@media screen and (min-width: 750px) {
h2 {
font-size: 20px;
}
.collection .card__inner, .card__information {
width: 60% !important;
margin: auto !important;
}
}
Result
If it helps you, please like and mark it as the solution.
Best Regards
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.
B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.
BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now
Hi @RC94
Can you modify it as follows to make the CSS affect only desktop devices?
@media screen and (min-width: 750px) {
h2 {
font-size: 20px;
}
}
Or make it affect only mobile devices
@media screen and (max-width: 750px) {
h2 {
font-size: 20px;
}
}
If it helps you, please like and mark it as the solution.
Best Regards
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.
B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.
BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now
Unfortunately, this code didn't work as per below image of the featured collection on desktop ( literally takes up the entire computer screen and looks terrible)
This is where I am adding the CSS coding
The code below has been the only code I have found that has adjusted the featured collection image on DAWN theme however, this changes both mobile & desktop and looks way too small on mobile & perfect on desktop- any idea how to alter this code so it doesn't effect the mobile visual?
Hi @RC94
Please change to it
@media screen and (min-width: 750px) {
h2 {
font-size: 20px;
}
.collection .card__inner {
width: 60%;
margin: auto
}
}
Or you can add CSS here
Step 1. Go to Admin -> Online store -> Theme > Edit code
Step 2. Find the file theme.liquid. Add the following CSS snippet before </head>
@media screen and (min-width: 750px) {
h2 {
font-size: 20px;
}
.collection .card__inner {
width: 60%;
margin: auto
}
}
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.
B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.
BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now
HOWEVER, please see what it is doing below on desktop- creating huge spaces inbetween the photo and the description is not aligning now. Please see below:
Apologies- the start of my message has disappeared.
AMAZING- the code worked here but not on the liquid.theme
HOWEVER, please see what it is doing below on desktop- creating huge spaces inbetween the photo and the description is not aligning now. Please see below: ( photo in the first response).
This is an accepted solution.
Yes, what I mean is you can add one of the two; if customizing is okay, then there's no need to add it in the theme.liquid
Your issue is that the image is resized and centered, however, the price section is still left-aligned.
Please change to it
@media screen and (min-width: 750px) {
h2 {
font-size: 20px;
}
.collection .card__inner, .card__information {
width: 60% !important;
margin: auto !important;
}
}
Result
If it helps you, please like and mark it as the solution.
Best Regards
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.
B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.
BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now
YOU ARE AMAZING! Thank you this worked a treat!
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024