• Hi,

    I need to translate the word “close” that appears when we click the mobile menu to close the menu extended. I’ve been trying to find way to achieve it without result.

    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello there,

    1. Install and activate the TC Custom JavaScript plugin
    2. Go To Appearance > Custom JavaScript
    3. Paste the following code into the provided box

    
    (function($){
    
      var closeText = 'My Close Text';
      var lang      = $('html').attr('lang');
    
      if( lang == 'en-US' ) {
    
        $('.main-navigation .nav-close').text(closeText);
        
      }
    
    })(jQuery);  
    

    Replace en-US with the language value attributed to your site’s HTML tag. You can get it by viewing the source code from web browser. It’s located at the most top line.

    Screen Shot 2018 09 26 at 19 01 22

    4. Update

    Regards,
    Kharis

    Thread Starter famaca

    (@famaca)

    Hello,

    Thanks for your answer. I’ve just installed the TC custom javascript to try. I don’t know if it works with my version of wordpress, which is the last one.
    I can’t see custom javascript in appearance, so there is no box.

    Regards

    Thread Starter famaca

    (@famaca)

    Finally, I’ve found the box, but the code doesn’t work.

    Thread Starter famaca

    (@famaca)

    I’m sorry, but the code works well.

    Thank you very much

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Translate “close” in responsive’ is closed to new replies.