Shopify themes, liquid, logos, and UX
Please help I have looked everywhere on Shopify for how to change this white line on my collections page to match the rest of my page or to remove it but I cannot figure out how.
Solved! Go to the solution
This is an accepted solution.
Hello @EmazingEarth
Go to online store ----> themes ----> actions ----> edit code ---->base.css ----> line number 779
search this code
.title--primary {
margin: 4rem 0;
}
and replace with this code.
.title--primary {
margin: 0rem 0;
}
result
If this was helpful, hit the like button and accept the solution.
Thanks
This is an accepted solution.
- Here is the solution for you @EmazingEarth
- Please follow these steps:
- Then find the base.css or theme.css file.
- Then add the following code at the end of the file and press 'Save' to save it.
.title--primary {
margin: 0 !important;
}
- Here is the result you will achieve:
- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.
If our suggestions are useful, please let us know by giving it a like or marking it as a solution.
Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)
Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page
Hello @EmazingEarth
would you like to share your store URL and password if any please.
so i can check and provide you possible solution for your question.
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){
#shopify-section-template--17268853801135__main .title--primary {
margin: 0 !important;
}
}
</style>
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
Hey @EmazingEarth
Welcome to Shopify Community! Can you share your Store URL so I can have a look on it? Also, if you have password enabled then please share the password as well. Your cooperation would be greatly appreciated.
Best Regards,
Moeed
Hello @EmazingEarth
your store is password protected.
This is an accepted solution.
Hello @EmazingEarth
Go to online store ----> themes ----> actions ----> edit code ---->base.css ----> line number 779
search this code
.title--primary {
margin: 4rem 0;
}
and replace with this code.
.title--primary {
margin: 0rem 0;
}
result
If this was helpful, hit the like button and accept the solution.
Thanks
This is an accepted solution.
- Here is the solution for you @EmazingEarth
- Please follow these steps:
- Then find the base.css or theme.css file.
- Then add the following code at the end of the file and press 'Save' to save it.
.title--primary {
margin: 0 !important;
}
- Here is the result you will achieve:
- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.
If our suggestions are useful, please let us know by giving it a like or marking it as a solution.
Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)
Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page
Discover how to increase customer engagement on your store with articles from Shopify A...
By Jacqui Apr 23, 2025Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025