Shopify themes, liquid, logos, and UX
How do I get rid of the annoying border around the newsletter input area as well as the double border on hover? And would like to have the input area just underlined ( border-bottom: 2px solid #000; )
Solved! Go to the solution
This is an accepted solution.
Hello @xnyjyh
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>
.footer .field::after{
pointer-events: none;
content: "";
position: absolute;
top: var(--inputs-border-width);
right: var(--inputs-border-width);
bottom: var(--inputs-border-width);
left: var(--inputs-border-width);
border: 0.1rem solid transparent;
border-radius: var(--inputs-radius);
box-shadow: unset !important;
transition: box-shadow var(--duration-short) ease;
z-index: 1;
border-bottom: 2px solid #000;
}
.footer .field::before{
pointer-events: none;
content: "";
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
border-radius: unset !important;
box-shadow: unset !important;
z-index: -1;
}
.footer .field__input:focus-visible{
box-shadow: unset !important;
outline: 0;
border-radius: unset !important;
}
</style>
This is an accepted solution.
Hello @xnyjyh
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>
.footer .field::after{
pointer-events: none;
content: "";
position: absolute;
top: var(--inputs-border-width);
right: var(--inputs-border-width);
bottom: var(--inputs-border-width);
left: var(--inputs-border-width);
border: 0.1rem solid transparent;
border-radius: var(--inputs-radius);
box-shadow: unset !important;
transition: box-shadow var(--duration-short) ease;
z-index: 1;
border-bottom: 2px solid #000;
}
.footer .field::before{
pointer-events: none;
content: "";
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
border-radius: unset !important;
box-shadow: unset !important;
z-index: -1;
}
.footer .field__input:focus-visible{
box-shadow: unset !important;
outline: 0;
border-radius: unset !important;
}
</style>
Hello, thank you so much for the code, but unfortunately it did not work 😞
OH wait, it worked for only the footer section newsletter. But did not work on the newsletter section itself.
UPDATE: I just changed the .footer to .newsletter. It worked fine. Solution is confirmed!
Learn 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, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025