Tagged: x
-
AuthorPosts
-
February 19, 2017 at 9:44 am #1377115
jwsouthaParticipantHello,
I am working on a site for a client (currently in development at http://hyback.com/cent/bside/wp/dev/).
The client has asked to add straight pipe characters between the navigation menu items, which I have done previously on other sites with li+li css content technique. I’ve tried it on this site, but the resulting character becomes part of the menu item link. Is there a way to do this with X using the Renew stack where the separator characters are non-clickable?
Current code:
.x-navbar .desktop .x-nav>li+li>::before { content: "|"; padding: 0 .5em; }Thanks!
February 19, 2017 at 9:54 am #1377124
ThaiModeratorHi There,
Please remove your custom CSS and add the following CSS instead:
.x-navbar .desktop .x-nav>li:after { content: "|"; position: absolute; color: #fff; right: -2px; top: -7px; } .x-navbar .desktop .x-nav>li:last-child:after { content: ""; }Hope it helps 🙂
February 19, 2017 at 10:09 am #1377132
jwsouthaParticipantWorks. THank you!
February 19, 2017 at 10:15 am #1377134
ThaiModeratorIf you need anything else please let us know.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1377115 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
