Tagged: CSS, extra menu, menu
Hello,
I wish to create a “double main menu” with one main menu being selected as the normal menu of the left, but with the possibly to add one or more “buttons” to the menu aligned to the right.
Look at this example:
Please advise if this is possible and how to go about it. I am using a child-theme so perhaps the changes can be made there somehow?
Hey erlis,
The easiest option would likely be to add a widget to the header: http://kriesi.at/documentation/enfold/adding-a-widget-area-to-the-header/, you can add any content to that. Let us know if that would be an option for you.
Best regards,
Rikard
Hello, and thanks for your quick reply!
I actually had already tried the link regarding adding a widget after the menu, however this resulted in this widget being shown below the menu, instead of the to the right of the menu.
I was able to sort it by manually setting the desired button last in the menu, and targeting it’s id through CSS:
My current CSS code for achieving this (and only for desktop sizes):
#menu-item-3366 {
background-color: #0067b1 !important;
}
@media only screen and (min-width: 768px) {
#menu-item-3366 {
float: right !important;
background-color: #0067b1 !important;
}
#menu-item-3366 > a > span.avia-menu-text {
border-left-width: 0px !important;
}
}
#menu-item-3366 > a > span.avia-menu-text {
color: #ffffff !important;
}
Hi,
I’m glad that you figured it out and thanks for sharing. Please open a new thread if you need further assistance. :)
Best regards,
Ismael
Hi,
To actually help you, we would need to see your web site link.
Is that possible please?
Best regards,
Basilis