Changing the width of the search bar - Empire Theme

5 0 1

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



Replies 4 (4)

Shopify Partner
1852 523 401

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

@media only screen and (min-width: 990px) { {
        width: 50% !important;
        margin: auto !important;


Screenshot is for reference only, the correct code to paste is the one shown above.



Was I helpful?

Buy me a coffee


Need help with your store? or check out the website
Check out our interview with Shopify!

Shopify Partner
4242 960 1609


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>

.live-search {
    max-width: 50%;
    margin: 0 auto;



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!

PageFly - #1 Page Builder for Shopify merchants.

All features are available from Free plan. Live Chat Support is available 24/7.

5 0 1

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!

Shopify Partner
236 52 53
.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.
Your Willpower Contribution Link :-


Contect On My Mail