Hey Folks!

On 24th & 25th February 2020 I will have limited access to help you on the support forum, as I will be traveling all day.

Answers to support questions may be delayed and answered on Monday 26th February 2020.

Sorry for any inconvenience.

Air.
Before you ask please READ THIS

logo link to different home page

in Rife Posts: 42
Hi,
logo links to the home page of the site. When i want use another link i pase this code:
jQuery(window).load(function(){
jQuery(".sfm-logo > a").attr("href", "http://your-url.com/");
});

but do you have any idea how can I link to different language versions?
For example, when I am on a German language version, the logo should link to home page german, not to my native Polish.

Comments

  • AirAir
    Posts: 10,226
    Hey :-)

    If you are making custom JavaScript solution, then you will have to somehow get the country code and add it at end of this link.

    You can try to add this code
    jQuery('html').attr('lang').substr(0,2) - it retruns first 2 letters of language code.

    With kind regards.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion