Okay
  Public Ticket #262084
highlight menu item
Closed

Comments

  • Lilli started the conversation

    Hello,

    how can I hightlighten a menu item like for example free trial. it should be highlighted all the time. 

  •  8,839
    Tahir replied

    Hey!

    Use any of these. Add this into the Custom CSS box located in your Salient Options panel :

    header#top nav > ul > li#menu-item-8167 > a {
        color: #ff0 !important;
    }
    
    
    header#top nav > ul > li#menu-item-8168 > a {
        color: #ff0 !important;
    }
    header#top nav > ul > li#menu-item-9781 > a {
        color: #ff0 !important;
    }
    
    
    header#top nav > ul > li#menu-item-10395 > a {
        color: #ff0 !important;
    }
    
    
    

    Cheers


    ThemeNectar Support Team 

  • Lilli replied

    Thank you very much for the answer.

    One more question: If I want to use a button in menu header, how do I do it? I found a short code to use in header.php but I couldn't understand where to set the button. Is it possible to set a button in German menu header and another button in English menu header?

  •  8,839
    Tahir replied

    Hey!

    You would have to paste in the html of that button in header.php . Much like the way we have added the search icon. 

    Thanks


    ThemeNectar Support Team 

  • Lilli replied

    Hello,

    But if I paste the html of that button in header.php the button will be the same for German and English menu. Is that right? But I need to different buttons (like: free trail in English Menu and Kostenlose Testversion in German menu.

  •  8,839
    Tahir replied

    Are you looking to translate the theme, if so please use the WPML plugin to make the site mulitilingual. More info can be found on wpml.org. 

    Thanks


    ThemeNectar Support Team 

  • Lilli replied

    Hello,

    It is translated with wpml. My question is: I have only one header.php. If I paste there the html for the button than I have always the same button in German menu and in English menu. Or not???

  •  8,839
    Tahir replied

    Yes, you would have the same button text if you do not place it like this :

    __('button text', NECTAR_THEME_NAME)

    And then rescan the .po file to add this translation.  Afterwhich upon changing the language the text will change accordingly as well. 

    All the Best,

    -T


    ThemeNectar Support Team 

  • Lilli replied

    Great, Thank you very much for your help.