Shopify themes, liquid, logos, and UX
Hi,I would like to change the search bar to be smaller in width, I have tried to find the code for it but it doesn't seem to be there. We have the empire theme
Website:https://vauxcentre.co.uk/
Hey @Charlotte93,
Go to your theme's "Edit Code" Option, then in the search bar type "theme.liquid"
Below the tag "<head>" tag paste the following. Screenshot attached for reference.
Change the 50% to any size you like
<style>
@media only screen and (min-width: 990px) {
form.live-search-form.form-fields-inline {
width: 50% !important;
margin: auto !important;
}
}
</style>
Screenshot is for reference only, the correct code to paste is the one shown above.
Hi @Charlotte93
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>
.live-search {
max-width: 50%;
margin: 0 auto;
}
</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,
Thank you for this! It changed it on the web, however it changed on the mobile as well when I am happy with how it looks on the mobile. Is there anyway of just changing it on the web and not the mobile too?
Thank you!
.ui-menu.glFilter-search-popup .gl-fullscreen-layer .gl-d-close-btn{
width: 30px;
height: 30px;
flex: unset;
padding: unset;
}
.ui-menu.glFilter-search-popup .gl-fullscreen-layer .gl-d-searchbox-input{
font-size: 18px;
}
.ui-menu.glFilter-search-popup .gl-fullscreen-layer .gl-d-searchbox-icon{
width: 50px;
height: 50px;
}
.ui-menu.glFilter-search-popup .gl-fullscreen-layer .gl-fullscreen-header {
width: 50%;
margin: 0 auto;
}
Add This Css In Your base.css file and see Magic
If you require further help to optimize your store, please don’t hesitate to reach out.
This contribution will always benefit you and you will get my full help easily and you can contact me easily.
Contect On My Mail :-Mail@gmail.com
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024