Header text and buttons in different languages

Is it possible to heave translations for header text and header buttons in two languages? I tried, but no success. Thanks

PS. Figured it out in Polylang settings.

However, can you help with the buttons? In the english version (be-positive.me/home) the button About scrolls to About section and button Services scrolls to services section. However, in the Serbian version (be-positive.me/pocetna) button O nama scrolls to O nama section, but the button Naše usluge doesn’t do anything and it should scroll to Usluge section of the front page. I would appreciate if you could help with this…

Hello there,

To change the second button link in the Serbian version, so that it will match the element ID of the services (Naše usluge), try to do the following steps:

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

jQuery(function($) {

  if( $('.right-button').length ){

    var btnURL      = $('.right-button').attr('href');
    var currentLang = $('html').attr('lang');

    if(currentLang == 'sr-RS'){
      btnURL = '#pg-1859-2'; /* Button link */ 
    }

    $('.right-button').attr('href', btnURL);
    
  }
  
});

  1. Update

Regards,
Kharis

Thank you, Kharis, that worked!
Regards

You’re welcome.

Please let us know in a new topic if you have any further questions, or if we can provide you with any other assistance.

Regards,
Kharis