Shopify themes, liquid, logos, and UX
Hey all,
is there any CSS code I can implement to make my product image on mobile stretch up to the header and remove any blank space surrounding it (like the images below)
Any help would be unreal.
My URL: https://project-thirteen.com.au
Solved! Go to the solution
This is an accepted solution.
Thank you have been patient!
You can add this code to assets/section-main-product.css file:
How to find to that file? you can go to Admin -> Online Store -> Themes -> Customize Code -> Assets:
@media screen and (max-width: 749px){
.section-header.shopify-section-group-header-group {
z-index: 3;
position: absolute;
top: 55px;
width: 100%;
}
.section-header.shopify-section-group-header-group .gradient {
background-color: transparent;
}
}
If you have further question, feel free to ask me!
This is an accepted solution.
To do that you can move the zoom icon to right bottom with this code:
@media screen and (max-width: 749px){
.section-header.shopify-section-group-header-group {
top: 55px;
}
.media-type-image .product__media-icon {
top: auto;
left: auto;
right: 3.2rem;
bottom: 2.2rem;
}
}
This is result:
This is an accepted solution.
Yes, you can try this code:
@media screen and (max-width: 749px){
.section-header.shopify-section-group-header-group.menu-open {
z-index: 99;
}
.section-header.shopify-section-group-header-group.menu-open #menu-drawer {
top: -55px !important;
}
}
This is result:
Have you want make it like this?
Yes, exactly like that.
This is an accepted solution.
Thank you have been patient!
You can add this code to assets/section-main-product.css file:
How to find to that file? you can go to Admin -> Online Store -> Themes -> Customize Code -> Assets:
@media screen and (max-width: 749px){
.section-header.shopify-section-group-header-group {
z-index: 3;
position: absolute;
top: 55px;
width: 100%;
}
.section-header.shopify-section-group-header-group .gradient {
background-color: transparent;
}
}
If you have further question, feel free to ask me!
Thanks @DitalTek, this worked although is it possible to move the magnifying glass to the bottom left hand side or make it invisible yet allow zoom when users click on the image?
Thanks
This is an accepted solution.
To do that you can move the zoom icon to right bottom with this code:
@media screen and (max-width: 749px){
.section-header.shopify-section-group-header-group {
top: 55px;
}
.media-type-image .product__media-icon {
top: auto;
left: auto;
right: 3.2rem;
bottom: 2.2rem;
}
}
This is result:
Thankyou @DitalTek, there now seems to be a slight gap between the announcement bar and the menu, is this fixable?
This is an accepted solution.
Yes, you can try this code:
@media screen and (max-width: 749px){
.section-header.shopify-section-group-header-group.menu-open {
z-index: 99;
}
.section-header.shopify-section-group-header-group.menu-open #menu-drawer {
top: -55px !important;
}
}
This is result:
You are welcome 🤗
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn 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, 2025