Archived topic
I want to modify this code of genesis framework to the template generate press
11 replies · Started by Josu on December 28, 2017
I want to modify this code of genesis framework to the template generate press
.nav-primary .genesis-nav-menu a:hover,
.nav-primary .genesis-nav-menu .current-menu-item > a,
.nav-primary .genesis-nav-menu .sub-menu .current-menu-item > a:hover {
color: #ed9494;
background-image: url(http://miweb.com/wp-content/uploads/2016/11/icono.png);
background-repeat: no-repeat;
background-position: 0px 0px;
}
can you help me?
I'm trying with this code
.main-navigation ul li a
a:hover
{
background-image: url(https://www.miweb/wp-content/uploads/2017/10/icono.png);
background-repeat: no-repeat;
background-position: 0px 0px;
}
Hi there,
What is the code supposed to do?
Like adding a background image to the navigation?
If so maybe try the customizer option? https://docs.generatepress.com/article/backgrounds-overview/
Ahm ok
I wanted to do that
but how do I adjust the position of the image?
That option should be in the customizer: https://docs.generatepress.com/article/backgrounds-overview/#position
hi
in main navigation i dont see position option
Ahh you are right.
This selector should work:
.main-navigation {
background-position: 0px;
}
It doesn't work
I also need to underline the option of the menu when passing mouse.
For example:
is there something option in generates personalitation?
I don't see a background image applied to your main navigation currently.
Navigation hover: https://docs.generatepress.com/article/adding-menu-hover-animation/
in the end I have not put an image hover
in the end I have not put an image hover
your code works perfect
thanks a lot
No problem!