Tagged: enfold
-
AuthorPosts
-
November 26, 2018 at 7:45 pm #1037747
Hey Enfold,
I am trying to add some CSS so only the current sub page is underlined instead of everything being underlined. I have some CSS so the current page get’s a bottom border but it’s being applied to the parent and all of it’s sub-menu-items.
Is there a better version of CSS that makes it so maybe the top header and the sub-menu-item only gets the underline?
November 27, 2018 at 12:16 am #1037855Hey Andrea,
What css are you currently running? Can you paste it here?
Best regards,
Jordan ShannonNovember 27, 2018 at 6:34 pm #1038116This is what I’ve got to make it so the menu icons are underlined with dashes and then a solid line on hover and active state:
.html_header_top .av_bottom_nav_header #header_main_alternate .main_menu ul:first-child>li>a, span.avia-menu-text {
text-decoration: none;
border-bottom: 1px dashed #CF7E41;
-webkit-transition: .5s;
-moz-transition: .5s;
transition: .5s ease-out;
background-image: none!important;
}.html_header_top .av_bottom_nav_header #header_main_alternate .main_menu ul:first-child>li:hover>a, span.avia-menu-text:hover {
border-bottom: 1px solid;
text-decoration: none;
-webkit-transition: .5s;
-moz-transition: .5s;
transition: .5s ease-out;
background-image: none!important;
}#top h1 a, #top h2 a, #top h3 a, #top h4 a, #top h5 a, #top h6 a, #top #header .av-main-nav>li a, span.avia-menu-text, span.avia-menu-text:hover {
border-bottom-width: 2px;
-webkit-transition: .5s;
-moz-transition: .5s;
transition: .5s ease-out;
}.menu-item-mega-parent.current-menu-item a>span.avia-menu-text {
border-bottom: 2px solid!important;
}November 28, 2018 at 7:37 pm #1038685Hi,
So you want a solid line on parent and sub-menu? So for example “About” and “Our Story” would have a solid black underline at the same time?
Best regards,
Jordan ShannonNovember 28, 2018 at 8:42 pm #1038709Yes, when you are at https://dev15.curlyhost.com/product/straight-corn-whisky/ I want the Spirits to have a solid underline and Straight Corn Whiskey to have a solid underline but NOT all of the other ones under Spirits unless they get hovered on. Does that make sense?
November 28, 2018 at 9:03 pm #1038719Hi,
Try adding this to quick css:
.sub-menu .current-menu-item a{ border-bottom: 1px solid!important; }
Best regards,
Jordan ShannonNovember 28, 2018 at 9:35 pm #1038742Just implemented and commented out:
/*.menu-item-mega-parent.current-menu-item a>span.avia-menu-text {
border-bottom: 2px solid!important;
}
*/How do I also get the parent to hover along with the sub item?
November 29, 2018 at 5:19 pm #1039049Hi CurlyHost,
You will need to use JavaScript for the later.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.