Index button language - need different links

Hello,

I’m posting here again, I have a little problem - I succesfully translated my page into English, but I have a little problem - on my index page in Czech language I need header button to link to www.mjre.cz/nabizime/, but in English language index, I need header button to link to www.mjre.cz/en/we-offer/ . Is it possible, please? I can’t find any solution to have different links on button. If yes, can you help me?

My page is www.mjre.cz.

Sorry for my English, I’m from Czech.

Hello Pajke,

How did you translate your website?

Kind Regards, Roman.

Hello,

I translated it by plugin Polylang.

Hello Pajke,

You can try to do this with jQuery.

  1. Please install and activate Insert Headers and Footers plugin that will allow you to insert JavaScript (jQuery) code.

  2. Go to your DashboardSettingsInsert Headers and Footers → add the following code to Scripts in Header section, and click Save button.

<script type='text/javascript'>
    jQuery(document).ready(function(){
        jQuery('html:lang(en-GB) a.button.header-button').attr('href', 'http://mjre.cz/en/we-offer/');
    });
</script>

Please feel free to ask any other questions that you might have.

Kind Regards, Roman.