Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1377115
    jwsoutha
    Participant

    Hello,

    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!

    #1377124
    Thai
    Moderator

    Hi 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 🙂

    #1377132
    jwsoutha
    Participant

    Works. THank you!

    #1377134
    Thai
    Moderator

    If you need anything else please let us know.

  • <script> jQuery(function($){ $("#no-reply-1377115 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>