Shopify themes, liquid, logos, and UX
Hello! I’m struggling with a problema. On desktop everything looks alright, but on mobile the picture is too big. How do I fix it?
Solved! Go to the solution
This is an accepted solution.
Try opening your theme's code editor, go to Assets -> base.css, scroll all the way down to the bottom and paste the following code:
@media only screen and (max-width: 600px) {
.hero__image {
width:600px;
height: auto;
}
}
The first "max-width" relates to the size of the devices you want to change the picture for, the second related to how wide the picture will be in said devices. If it doesn't work post a link to your store and I'll see what I can do.
This is an accepted solution.
Hi @AlexaBvogue
I understand that you don't want the image to be cut and able to show full width on smaller device. Please follow the instructions below to fix this.
1. From your Admin Page, click Online Store > Themes >Actions > Edit code
2. In the Asset folder, open the theme.scss.css
3. Paste the code below at the very bottom of the file.
@media only screen and (max-width: 990px) {
.hero.slick-slider .slick-list {
display: none
}
.hero.slick-initialized.slick-slider {
height: max-content;
}
}
This is an accepted solution.
Try opening your theme's code editor, go to Assets -> base.css, scroll all the way down to the bottom and paste the following code:
@media only screen and (max-width: 600px) {
.hero__image {
width:600px;
height: auto;
}
}
The first "max-width" relates to the size of the devices you want to change the picture for, the second related to how wide the picture will be in said devices. If it doesn't work post a link to your store and I'll see what I can do.
Thank you!!
This is an accepted solution.
Hi @AlexaBvogue
I understand that you don't want the image to be cut and able to show full width on smaller device. Please follow the instructions below to fix this.
1. From your Admin Page, click Online Store > Themes >Actions > Edit code
2. In the Asset folder, open the theme.scss.css
3. Paste the code below at the very bottom of the file.
@media only screen and (max-width: 990px) {
.hero.slick-slider .slick-list {
display: none
}
.hero.slick-initialized.slick-slider {
height: max-content;
}
}
Thank you so much!! It worked perfectly!!
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024