Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #769164

    Hi all,

    Sorry if this has been asked, did a search and couldn’t find what i was after.

    This was close, but not exactly what i’m after

    Is it possible to change the text to an icon when the navbar sticks to the top of the page? I am able to add the icons i want to the navbar no problem, but what would be idea is when the navbar hits the sticky part the text just changes to the icon, and vice versa, when it unsticks it only displays the text.

    Site info below

    Thanks,

    #770120

    I know there has been alot of posts/questions so things get backlogged, but bumping this to get an update if possible

    #770142

    Hey!

    You can to change the next of the navbar, for example ” Home ” to an icon?
    Is that what you do need?

    Best regards,
    Basilis

    #770159

    Hi Basilis,

    yep that’s what i’m wanting to do :)

    #770758

    Seeing if there is any update to this?

    Also is it possible to manipulate the text to change to the icon when the header “sticks” via the CSS?

    #771790

    Hi,

    Please go to Appearance > Menus and replace navigation label for your homepage with – https://pastebin.com/Mg89WQS2

    Best regards,
    Yigit

    #771878

    Hi Yigit,

    This is partially what I want to do, i’m already able to change the text to the icon as mentioned in my original post, but what I was more after is when the nav sticks to the top, that’s when the text changes to the icons.

    Is this possible with CSS or do i need to manipulate with Jquery/JS?

    If possible with CSS, what do i need to target?

    Thanks,

    #772042

    Hi,

    Please add navigation label as following

    
    <span class="av-icon-char" aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello"></span> <span class="menu-text">Home</span> 
    

    and then add following code to Quick CSS in Enfold theme options under General Styling tab

    .header-scrolled .av-main-nav .menu-text, .av-main-nav .av-icon-char { opacity: 0!important; }
    .header-scrolled .av-main-nav .av-icon-char { opacity: 1!important; } 

    Best regards,
    Yigit

    #772067

    Hey Yigit,

    This is exactly what i was after.

    Thankyou!!

    #772115

    Hi,

    Let us know if you have any other questions or issues :)

    Best regards,
    John Torvik

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.