Hiya, I was wondering if anybody can help me.
I want to change my search bar background colour to a different colour and put the word search on the bottom (not at the top) and to make the search icon bigger
i also want to change the menu icon and search and cart icons to the colour black
I managed to change the colour for the search background in stuido theme but I am now using sense theme and the codes do not work.
Thank you
Hello @createdbylove
would you like to share your store URL and password if any please.
so i can check and provide you possible solution for your question.
Hi @createdbylove
Can you please provide your store URL and password as well if applicable, so that I can provide you solution that can work for your store.
Best regards
Sahil
Hi tried to message you but won’t let me?
Hi I have messaged you with url and password.
It doesnt let me message you
Hi @createdbylove Thanks for the URL and password, please add the below code.
Please follow the steps:
Login in shopify admin.
Click on the Online Store.
Then click on the button next to Customize in live Theme.
Click Edit Code.
Search theme.liquid in the code in left hand side in your theme.
Add the following code in the bottom of the file above tag
Result:
Hopefully it will help you. If yes then Please don’t forget hit Like and Mark it as solution!
Best Regards
Sahil
Go to Online Store → Theme → Edit code.
Open your theme.liquid file
Paste the below code before on theme.liquid
@media screen and (max-width: 767px) {
input#Search-In-Modal {
background: #fff !important;
border-radius: unset !important;
color: #000 !important;
}
#shopify-section-sections--23012212638019__header .field__label{
color: #000 !important; /*change color according to you*/
}
.header__icon--menu .icon, .header__icon, .search__button .icon, .modal__close-button .icon{
color: #000 !important; /*change color according to you*/
}
.field:hover.field:after, .field:before{
box-shadow: 0 0 0 calc(.1rem + var(--inputs-border-width)) #0000003d;
}
.search-modal.modal__content.gradient {
background: #f0f0f0 !important;
}
}
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
Acme
August 1, 2024, 10:39am
10
Hi, @createdbylove
Please navigate online store → theme → customize → edit code.
add color schema for icon to header.liquid.
add class for icon(search, cart, hambuger).
/snippets/header-search.liquid.
/snippets/header-drawer.liquid
and then you can set theme what you want.
Hi @createdbylove Can you add this code.
Hopefully it will help you. If yes then Please don’t forget hit Like and Mark it as solution!
Best Regards
Sahil
Could you please send me the codes to put please I cannot seem the images very well
Acme
August 1, 2024, 1:58pm
15
Please focus on color-{{ section.settings.icon_color_scheme }}
{%- if cart.item_count < 100 -%}
{{ cart.item_count }}
{%- endif -%}
{{ 'sections.header.cart_count' | t: count: cart.item_count }}
{%- endif -%}
....
"settings": {
...
{
"type": "color_scheme",
"id": "icon_color_scheme",
"label": "t:sections.header.settings.icon_color_scheme.label",
"default": "scheme-1"
},
}
- header-search.liquid
....
.....
- header-drawer.liquid
{% render 'icon-hamburger' %}
{% render 'icon-close' %}
...
I’m sorry I but I dont know how to put this all in without affecting my page.
I’ve tried it doesn’t work
Hi @createdbylove ,
Please go to Actions > Edit code > Assets > base.css file and paste this at the bottom of the file:
header .icon {
color: rgb(18, 18, 18);
}
.search-modal__form {
--inputs-radius: 0px;
--color-foreground: 18, 18, 18;
color: rgba(var(--color-foreground), 0.75);
}
Hi @createdbylove ,
Please change code:
.search-modal.modal__content {
--color-background: 255, 255, 255;
--gradient-background: #ffffff;
}
header .icon {
color: rgb(18, 18, 18);
}
.search-modal__form {
--inputs-radius: 0px;
--color-foreground: 18, 18, 18;
color: rgba(var(--color-foreground), 0.75);
}
it will show like this:
Hiya, I have applied the codes. It has worked but there is some problems