Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1244259
    Antoine
    Participant

    Hello,

    I am trying to have an icon in the navbar and tried a custom link with <i class=”x-icon x-icon-home”></i> but all I get in a clickable blank space. How do i manage to get the icon shows up?

    Thanks,
    Antoine

    #1244266
    Joao
    Moderator

    Hi Antoine,

    Please use this code instead:

    <i class="x-icon x-icon-home" data-x-icon="" aria-hidden="true"></i>

    Hope that helps

    Joao

    #1244834
    Antoine
    Participant

    Thank you Joad, it worked.

    I now have the problem that the icon is not aligned with the rest of the menu. How can I fix it?
    null

    Is there also a way to change the distance between the icon and the line underneath (the distance is slightly larger than on the rest of the menu, probably due to the space included in the icon)?

    Thank you in advance for your help!
    Antoine

    #1244883
    Thai
    Moderator

    Hi Antoine,

    Please provide us with your website URL so we can take a closer look.

    Thanks.

    #1244904
    Antoine
    Participant

    The URL is http://www.kyani.co

    #1244969
    Friech
    Moderator

    Hi There,

    You can add this under Custom > CSS in the Customizer.

    .x-navbar .desktop .x-nav > li.menu-item-99 > a {padding-top: 10px;}

    Hope it helps, Cheers!

    #1244971
    Thai
    Moderator

    Hi There,

    Please add the following CSS:

    li#menu-item-99 a {
        padding-top: 12px
    }

    Hope it helps 🙂

    #1245039
    Antoine
    Participant

    It works just fine, thanks!

    #1245075
    Thai
    Moderator

    If you need anything else please let us know.

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