Shopify themes, liquid, logos, and UX
For phone version only, on home page featured collection, how to reduce the space between heading and image?
Theme: Prestige
Website: https://prettycious.com/
Solved! Go to the solution
This is an accepted solution.
Hello @memahmudhassan ,
I understand you are looking to reduce the unnecessary space between the heading and the image.
I have reviewed your store and see that on the mobile screen the unnecessary space above and below the heading does not look appropriate.
You can remove the space with the help of the mentioned CSS code.
Add the code at the bottom of the theme.liquid file before </body> tag and save.
<style>
@media screen and (max-width: 776px) {
.section-spacing.bordered-section {
margin-block-start: 10px !important;
}
.section-stack {
gap: 0px !important;
}
}
</style>
Output -: https://prnt.sc/w9SlRiYI_JHU
I hope the code helps you.
Please share if you need any further assistance.
Thank you.
@media screen and (max-width: 750px) {
.section-stack {
gap: 1px;
}
.section-spacing.bordered-section {
margin-top: 0;
}
}
Not working. Also, I think the total gap is too much.
Can you please share a screenshot of the file where you added CSS?
@media screen and (max-width: 750px) {
.section-stack {
gap: 1px;
}
.section-spacing.bordered-section {
margin-top: 0;
}
}
Did what you told
Hello @memahmudhassan
You can add code by following these steps
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. Paste the below code before </body> on theme.liquid
<style>
@media screen and(max-width: 767px){
.h2, :where(.prose h2) {
font-size: 19px !important;
}
.section-stack {
gap: 0 !important;
}
}
</style>
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
Not working. Also, I think the total gap is too much.
You can add code by following these steps
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. Paste the below code before </body> on theme.liquid
<style>
@media screen and(max-width: 767px){
.section-spacing.bordered-section {
margin-top: 10px !important;
}
.section-stack {
gap: 20px !important;
}
.section-stack .prose p {
display: none;
}
}
</style>
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
This is an accepted solution.
Hello @memahmudhassan ,
I understand you are looking to reduce the unnecessary space between the heading and the image.
I have reviewed your store and see that on the mobile screen the unnecessary space above and below the heading does not look appropriate.
You can remove the space with the help of the mentioned CSS code.
Add the code at the bottom of the theme.liquid file before </body> tag and save.
<style>
@media screen and (max-width: 776px) {
.section-spacing.bordered-section {
margin-block-start: 10px !important;
}
.section-stack {
gap: 0px !important;
}
}
</style>
Output -: https://prnt.sc/w9SlRiYI_JHU
I hope the code helps you.
Please share if you need any further assistance.
Thank you.
Thanks Anshul, it worked!
Hey 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, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024