Jump to content

York - Redirecting Logo Link

Go to solution Solved by Web_Solutions,

Recommended Posts

Posted

Hi all,

 

I am using York template and recently added a landing page. 

Now i am trying to redirect my logo to my "Work" page.

I did try different codes that i found on the forum and other websites, however the logo is directing me to the landing page.

 

https://www.manofiga.com

 

Thanks for any help in advance!

  • Solution
Posted

Add these code on Code Injection panel in Website Utilities Website Tools > Code Injection.

<script src="https://code.jquery.com/jquery-3.6.3.min.js"></script>
<script>
  $(function(){
    $('.logo-image a').attr("href","/work");
  });
</script>

 

Screenshot_213.png

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

  • 1 month later...
Posted
On 11/28/2023 at 8:44 PM, ManoFiga said:

Hi again, any ideas why re-directing does not work on mobile? 

York Mobile uses a different class name, try this new code

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
  $(function(){
    $('.logo-image a, .mobile-branding-wrapper a').attr("href","/work");
  });
</script>

If it doesn't work, you can share link to your York site, we can help easier

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.