Hello, could someone please help me customising my header. Needing to move the navigation items to the center and add an effect when mouse it over. Reply if you can help!
Thanks!
Goal: Center the header navigation and add a mouse-over effect; also adjust navigation text size on a Shopify store (URL provided for review).
What was done:
Context/notes:
Status:
Hello, could someone please help me customising my header. Needing to move the navigation items to the center and add an effect when mouse it over. Reply if you can help!
Thanks!
Hi @Khaleed ,
Please send your site. I will check it.
thank you!!
URL: https://b8f5a5-3.myshopify.com/
And i was wondering if you would be capable of making an effect so when the mouse is over the navigation text, the selected on turns green from left to right??
Thanks!!!
Hi @Khaleed ,
Please go to Actions > Edit code > Assets > base.css file and paste this at the bottom of the file:
.header__menu-item {
position: relative;
}
.header__menu-item:hover span {
text-decoration: none;
}
.header__menu-item:after {
content: "";
display: block;
position: absolute;
bottom: 2px;
left: 0;
right: 100%;
margin: 0 15px;
border-bottom: 2px solid;
transition: right .5s;
border-bottom-color: green;
}
.header__menu-item:hover:after {
right: 0;
opacity: .8;
}
Thank you! the effect looks very good! But the content is still not alligned in the middle. Could it be to do with me removing the search icon from there?
I also want to be able to adjust the size of the navigation text if possible ![]()
Hi @Khaleed ,
Please add code:
@media screen and (min-width: 990px) {
.header--middle-left {
grid-template-columns: 1fr auto 1fr;
}
.header__menu-item {
font-size: 1.4rem;
}
}