Jump to content

Change Logo Link on Mobile Version

Go to solution Solved by tuanphan,

Recommended Posts

15 hours ago, tuanphan said:

I guess you only target to desktop logo class name. Can you share link to your site & which code did you use?

Sure. 
http://konekretouch.com

Logo link should point to https://www.konekretouch.com/work

And here's the code:
 

<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>

<script>$(document).ready(function () {
          $(".logo-image [href]").attr("href", "https://www.konekretouch.com/work");
        });
</script>


Thanks!
 

Link to comment
  • Solution
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>

<script>$(document).ready(function () {
          $(".logo-image [href]").attr("href", "https://www.konekretouch.com/work");
   		 $(".mobile-logo-image [href]").attr("href", "https://www.konekretouch.com/work");
        });
</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
On 3/4/2020 at 10:32 AM, tuanphan said:

<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>

<script>$(document).ready(function () {
          $(".logo-image [href]").attr("href", "https://www.konekretouch.com/work");
   		 $(".mobile-logo-image [href]").attr("href", "https://www.konekretouch.com/work");
        });
</script>

 

 

PERFECT! Thanks a million! 

😍

Link to comment
  • 1 year later...
On 3/4/2020 at 8:32 AM, tuanphan said:

<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>

<script>$(document).ready(function () {
          $(".logo-image [href]").attr("href", "https://www.konekretouch.com/work");
   		 $(".mobile-logo-image [href]").attr("href", "https://www.konekretouch.com/work");
        });
</script>

 

Hi, same issue as many others has commented. The solution provided here just work for desktop view (at least for me). Mobile view still redirecting to the cover page.  Any idea onto this? Thanks in advance.

Link to comment
  • 1 year later...
On 5/10/2022 at 11:13 AM, alexaromano said:

I am still having trouble with my mobile logo link. Any success on this?

What is your site url? Each template will need a different code

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.