Jump to content

changed site title link not works on mobile

Recommended Posts

Hi,

I've changed the site title link  for the english version of the website and it works perfect on desktop. But on mobile it doesn't work anymore and the link goes back to the german start page.

I've used this code:

<script>
$(document).ready(function() {
    $('#site-title').attr('href','/english/home');
});
</script>

Any ideas?

Thanks!

Clemens

Link to comment
  • Replies 2
  • Created
  • Last Reply

I just solved the problem by using this code:

<script>
$(document).ready(function() {
    $('#site-title').attr('href','/english/home');
});
    $(document).ready(function() {
    $('.header-display-mobile #site-title').attr('href','/english/home');
});
</script>

Link to comment
  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.