Shopify themes, liquid, logos, and UX
Does anyone know why my menu search button looks to be overlapping with the account button? This only happens on narrow resolution.
my website link is gigglefabric.com
Hi @Davidn
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. In theme.liquid, paste the below code before </head>
<style>
@media (min-width: 769px){
svg.icon.icon-search {
margin-left: 1rem !important;
}
}
</style>
If my reply is helpful, kindly click like and mark it as an accepted solution.
Thanks!
Instead of the above code, use this code
<style>
@media (min-width: 769px) {
svg.icon.icon-search {
margin-left: -3rem !important;
}
}
</style>
If my reply is helpful, kindly click like and mark it as an accepted solution.
Thanks!
Hi @Davidn
This is Richard from PageFly - Shopify Page Builder App
Please add this code to your theme.liquid above the </head> to get this solved
Step 1: Online Stores > Themes > More Actions > Edit code
Step 2: click on theme.liquid and paste the code above the </head>
<style>
@media screen and (min-width: 990px) {
.header>.header__search {
grid-area: icons !important;
justify-self: right;
width: 55% !important;
justify-content: center;
}
}
</style>
Hope this can help you solve the issue
Best regards,
Richard | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
➜ Optimize your Shopify store with PageFly Page Builder (Free plan available)
All features are available from Free plan. Live Chat Support is available 24/7.
Hi Richard
I just tried this code and it seemed to work well until i tried it on my 4k screen.
is there any way to fix this gap that's created when browsing on larger screens?
try this code
<style>
summary.header__icon.header__icon--search.header__icon--summary.link.focus-inset.modal__toggle span {
margin-right: -6rem !important;
}
</style>
Still looks really weird, i dont think just changing the margin will help.
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025