Hello! I am designing a shop and I want to change the form of the buttons in the header. As you see from the screenshot, now I have three buttons and when one is selected, it is underlined.
What I want to do is to make these menus (Home/Catalog/Contact/etc) be encircled into an oval-form button and to remove the underlining. How can I do that? I presume some code is needed, but I don’t know exactly which one.
Hi @d_reinicke ,
Thank you for reaching out to the Shopify Community!
Please share your store URL here so we can check it for you.
Thanks & Regards,
Ahsan ANC
Sure, sir.
The website is https://project-avignon.myshopify.com/
The password protection is meolyo
Thank you in advance for your help 
You can try this code
- Go to Online Store-> Theme->Edit code
- Asset-> base.css ->paste the below code at the bottom of the file.
@media only screen and (min-width: 768px){
.header__active-menu-item{
text-decoration: none;
}
.header__menu-item:hover span {
text-decoration: none;
}
.list-menu__item{
border: 2px solid #fff;
border-radius: 16px;
margin: 0 10px;
padding: 10px 20px;
}
}
1 Like
Thank you again for your help! Regarding the same topic, I also wonder what should I do in order to change the inner filling of these buttons and to change the colour of the text inside these particular buttons SOLELY.
I would highly appreciate if you sent another piece of code, which changed the filling to white and the text to black (but only inside buttons).
Ahsan, I have also just noticed that some other buttons in the bottom of the page obtained the same design feature as the buttons in the header. How could we remove that?
please add this code
@media only screen and (min-width: 768px){
.list-menu__item{
background: #fff;
color: #000;
}
.header__menu-item:hover span{
color: #000;
}
span.header__active-menu-item {
color: #000 !important;
}
}
please remove all the code that you added earlier add this new code
@media only screen and (min-width: 768px){
.header .header__active-menu-item{
text-decoration: none;
color: #000 !important;
}
.header .header__menu-item:hover span {
text-decoration: none;
color: #000;
}
.header .list-menu__item{
border: 2px solid #fff;
border-radius: 16px;
margin: 0 10px;
padding: 10px 20px;
}
.header .list-menu__item{
background: #fff;
color: #000;
}}
1 Like
Tried this one. I’m afraid it won’t change anything with the buttons.
Now it works, with the latest version of the code!
Thank you very much again, Ahsan!
–
Issue resolved