Shopify themes, liquid, logos, and UX
Hi,
Just wanting to know how to remove the bottom border of my header on my home page only, i'd like it on all other pages - please let me know if there is other information I need to provide
my store is: https://www.kbty.com.au/
password: teethu
Thanks in advance!
Solved! Go to the solution
This is an accepted solution.
Hi @kbtyau
{% if template.name == "index" %}
{% style %}
header.theme__header.has-border::before {
border: none !important;
}
{% endstyle %}
{% endif %}
Here is the result: https://prnt.sc/CvV4tIxP-gH7
I hope this helps
Best,
Daisy
Hello! @kbtyau Please follow these steps to add this CSS code:
1. Go to your Online Store
2. Click on "Themes"
3. Select "Edit code"
4. Open your CSS file. If you have a custom CSS file, open that instead.
5. If you can't find your custom CSS file, open "theme.css"
6. Add the following code at the end of the file.
body .toolbar.has-border:before, body .theme__header.has-border:before{
display: none;
}
If you need further assistance, please let me know. If you found my help useful, consider liking this message and marking it as the Accepted Solution.
Best regards
K.K
Hello @kbtyau , You need to add this class in body tag for homepage only so this will remove border on home page only
.home .theme__header::before {
display: none;
}
Hi @kbtyau
Try this one.
{% if template.name == 'index' %}
<style>
.theme__header.has-border:before {
border: none;
}
</style>
{% endif %}
Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!
This is an accepted solution.
Hi @kbtyau
{% if template.name == "index" %}
{% style %}
header.theme__header.has-border::before {
border: none !important;
}
{% endstyle %}
{% endif %}
Here is the result: https://prnt.sc/CvV4tIxP-gH7
I hope this helps
Best,
Daisy
Thank you so much!
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