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

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...

Hi. You can combine both code to this

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

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • 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.