Tagged: x
-
AuthorPosts
-
June 5, 2016 at 5:44 am #1026484
teoszeleeParticipantI have referred to this thread
https://community.theme.co/forums/topic/ethos-menu-highlighting-sub-pages-possible/
and able the make the Blog menu item highlighted (change color) when it’s single post.
/* Highlight Blog Menu for Single Blog Post */
.blog .x-navbar #menu-item-10555 > a,
.archive:not(.post-type-archive-x-portfolio) .x-navbar #menu-item-10555 > a,
.single-post .x-navbar #menu-item-10555 > a{
color: #C32148;
}My problem is I do not know how to get the underline effect.
June 5, 2016 at 9:21 am #1026632
teoszeleeParticipantThis reply has been marked as private.June 5, 2016 at 11:34 am #1026747
RupokMemberHi there,
Thanks for writing in and clarifying in details. You can add this as well :
.blog .x-navbar #menu-item-10555 > a > span , .archive:not(.post-type-archive-x-portfolio) .x-navbar #menu-item-10555 > a > span , .single-post .x-navbar #menu-item-10555 > a > span { box-shadow: 0 2px 0 0 rgb(195, 33, 72); }Hope this helps.
Cheers!
June 5, 2016 at 9:21 pm #1027260
teoszeleeParticipantThat works great! Thanks!
One more request, I am having the similar problem for my portfolio children page.
Now if the submenu item for children is enabled, I can make the parent menu item active through JS.
But I do not want to enable the submenu item. Is there anyway to still make the parent menu item visible?
June 5, 2016 at 9:22 pm #1027261
teoszeleeParticipantThis reply has been marked as private.June 6, 2016 at 2:47 am #1027553
ChristopherModeratorHi there,
Please add this code :
.current-page-ancestor a span { box-shadow: 0 2px 0 0 rgb(195,33,72); color: rgb(195,33,72); }Thanks.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1026484 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
