Shopify themes, liquid, logos, and UX
This is an accepted solution.
Here is the custom code that you need to use in your theme.
.header-bar__module.header-bar__search {
background-color: transparent;
}
.header-bar__search-input[type=search] {
opacity: 0;
visibility: hidden;
}
.header-bar__search-submit {
left: 50%;
transform: translate(-50%,0);
}
Hello There,
1. In your Shopify Admin go to online store > themes > actions > edit code
2. Find Asset >theme.css and paste this at the bottom of the file:
input.header-bar__search-input {
text-align: center!important;
}
.supports-fontface .header-bar__search-submit {
width: 70%!important;
}
I don't want this bar only search icon
Hope you are doing well?
Kindly, please give me your Shopify store URL.
Thank you
Basically you need your search icon to the right side of your search box.
Am I right?
I want like this.
Is Possible?
Hello There,
1. In your Shopify Admin go to online store > themes > actions > edit code
2. Find Asset >theme.css and paste this at the bottom of the file:
.header-bar__search button, .header-bar__search form, .header-bar__search input {
width: 90px;
}
input.header-bar__search-input {
text-align: center!important;
}
.supports-fontface .header-bar__search-submit {
width: 50%!important;
}
This is an accepted solution.
Here is the custom code that you need to use in your theme.
.header-bar__module.header-bar__search {
background-color: transparent;
}
.header-bar__search-input[type=search] {
opacity: 0;
visibility: hidden;
}
.header-bar__search-submit {
left: 50%;
transform: translate(-50%,0);
}
Thanks
Hi, how can I do this on warehouse theme (only leave the search icon and centre the logo)? I copied this, but it didn´t work.
Thanks!
User | RANK |
---|---|
72 | |
70 | |
65 | |
53 | |
52 |
As a business owner, have you ever wondered when your customer's first impression of yo...
By Skye Jun 6, 2023We're excited to announce improvements to the threaded messaging experience in our communi...
By TyW May 31, 2023Thank you to everyone who participated in our AMA with Klaviyo. It was great to see so man...
By Jacqui May 30, 2023