imattf
1
Hi! I want to change the background of one menu item in my header.
The background I want to change is the “request a quote” link/button in my website. I want it to have a different background. Blue is fine.
How do I change this?
Been trying to mess with the liquid code but to no avail. thanks
@imattf Please share your store URL and password(If it is password protected.). So that I can check and give you the exact solution.
Hello @imattf
Please share your website URL.
You could try writing something like this:
{% if link.title == 'Request A Quote' %} style="background: blue" {% endif %}
imattf
6
tried this out, sadly didn’t work. Maybe I put it in the wrong line? I’ve tried putting it in the links code
in the header file
Yes, you could have put it on the mobile menu code, usually there’s two menu lists in the header.liquid file, one for desktop and one for mobile.
imattf
8
found the desktop one. still didn’t work 
Hello @imattf
I would like to give you a solution to support you:
- Go to Online Store-> Theme-> Edit code
- Open your theme.liquid theme file
- Paste the below code before :
<style>
.header__menu-item[href="/pages/request-a-quote"] {
background-color: blue;
}
.header__menu-item[href="/pages/request-a-quote"] {
color: white !important;
}
</style>
Was my reply helpful? Please Like and Accept Solution. This mean alot to me.