Hello,
I’d like the main menu underlined (with a distance). Two different colors for normal a and hover. The lines should be as long as the words. The lines should lay exactly on top of the below image. See screenshot and link as private content.
Thanks for your help!
on default there are allready these lines : https://kriesi.at/themes/enfold/portfolio/
maybe you set it to display: none ? search for selector .avia-menu-fx
you then can influence by – f.e.:
#top .header_color .avia-menu-fx {
height: 4px
}
#top .header_color.av_header_transparency .menu-item a:hover .avia-menu-fx {
background: red
}
#top .header_color:not(.av_header_transparency) .avia-menu-fx {
background: green
}
maybe you had to synchronize it with the border-top-width color and width. #top .av-main-nav > li > ul
and mega-div – because if there are sub-level dropdown menues – they will have a border too.
Thank you Mike, this code works well! What can I do, to show such a line also on the inactive menu items?
Hi,
Try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:
.header_color .menu-item:not(.current-menu-item) .avia-menu-fx {
opacity: 1;
visibility: visible;
background: gold;
}
Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.
After applying the css, please clear your browser cache and check.
Best regards,
Mike
Perfect. Thank you very much!
Hi,
Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.
Best regards,
Mike