Hello Kresi,
I’m not able to get my wish to work. I would like to change 1 menu-item in the main menu to have a small background image and a different color. I cannot seem to get this to work with CSS. Probably targeting the wrong CSS item. I’ve added the following to the Quick CSS box in my child theme settings:
#menu-item-10192, #menu-item-10192 a {
background-image: url ("http://www.originaltours.nl/2014/wp-content/uploads/seizoensuitjes.jpg");
color: white;
}
I’d like to target the “seizoensuitjes” nav item.
Can you please advise? Thanks in advance.
Hey originaltours!
Please use following code
#menu-item-10192, #menu-item-10192 a {
background-image: url(https://www.originaltours.nl/2014/wp-content/uploads/seizoensuitjes.jpg);
}
#menu-item-10192 > a > .avia-menu-text { color: white !important; }
Best regards,
Yigit
Hmmm, found a part solution. The background image had a space. The correct code should be:
#menu-item-10192, #menu-item-10192 a {
background-image: url("http://www.originaltours.nl/2014/wp-content/uploads/seizoensuitjes.jpg");
color: white;
}
But still the text is coloured black. I would like this to be white. Please advise.
Hey!
Please see – https://kriesi.at/support/topic/background-image-behind-1-nav-item/#post-373086 :)
Cheers!
Yigit
Thanks, works perfect. Except for the mobile menu. Any idea how to disable this for the mobile menu?
Thanks….
Hey!
Please change the code to following instead
@media only screen and (min-width: 990px) {
#menu-item-10192, #menu-item-10192 a {
background-image: url(https://www.originaltours.nl/2014/wp-content/uploads/seizoensuitjes.jpg);
}
#menu-item-10192 > a > .avia-menu-text { color: white !important; }}
Best regards,
Yigit
Thanks!, Ticket can be closed