Okay
  Public Ticket #2293229
navigation - menu - icon or symbol?
Closed

Comments

  • fivefootrachel started the conversation

    Is there a way to put an icon shortcode or a symbol, eg. | (bar symbol) between each menu item on the navigation bar? I'm not seeing an option in the settings. Thanks!

  •  8,992
    Tahir replied

    Hey Again,

    Add this into the Custom CSS box located in your Salient Options panel (All custom css provided is tested in the Live Browser so it will work as intended . If you cant see any changes make sure there is no red cross in the Custom CSS Box as that syntax error would cause all css below it to not show up on the Frontend):

    #top nav ul li:not(:last-child) a:after {
        content: "|";
        position: relative;
        left: 10px;
    }

    Thanks


    ThemeNectar Support Team 

  • fivefootrachel replied

    Tahir - that worked!!
    It is functioning as part of the hyperlink. Is there a way to turn off the coloring/underline on just the | ?

  •  8,992
    Tahir replied

    Use this instead.

    Add this into the Custom CSS box located in your Salient Options panel (All custom css provided is tested in the Live Browser so it will work as intended . If you cant see any changes make sure there is no red cross in the Custom CSS Box as that syntax error would cause all css below it to not show up on the Frontend):

    #top nav ul li:not(:last-child):after {
        content: "|";
        position: relative;
        left: 0px;
    }

    Thanks


    ThemeNectar Support Team 

  • fivefootrachel replied

    I've added a sub menu and don't need this divider symbol on the sub menu.

    After some looking around the webs, looks like maybe using    :nth-child(-n+6)      may be a fix to apply the divider to only the top 6 child items? But I'm not sure how to change this code to make it work.

  •  8,992
    Tahir replied

    Hey Again,

    I dont see any submenu on the Live Site ?. 

    Best 


    ThemeNectar Support Team 

  •   fivefootrachel replied privately
  •  8,992
    Tahir replied

    Hey Again,

    Use this css instead: 

    #top nav> ul >li:not(:last-child):after {
        content: "|";
        position: relative;
        left: 0px;
    }
    

    Best 


    ThemeNectar Support Team 

  • fivefootrachel replied

    Thank you Tahir!