Jump to content

Change Navigation Logo Image Link

Recommended Posts

Posted

Try adding this to the Footer Code Injection:

<!-- Redirect Site Title Logo -->
<script>
  document.querySelector('a#site-title').setAttribute('href', '/home');
</script>

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Posted

Sorry that didn't work for you, it worked perfectly in my testing. Can you confirm where you placed the code on your website?

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Posted

Yes, @tuanphan that worked. Thanks to you both! 

This is what I ultimately used and it worked: 

<!-- Redirect Site Title Logo -->
<script>
  document.querySelector('.header-title-logo a, .header-mobile-logo a').setAttribute('href', '/home');
</script>

  • 7 months later...
Posted

Hello,
Thank you for sharing this! It worked perfectly for desktop but not for mobile? https://www.agonyecstasygallery.com/ is the landing/'splash' page but I would love the header navigation logo to link to https://www.agonyecstasygallery.com/01-home  on both mobile and desktop.

I used the code: 

<!-- Redirect Site Title Logo -->
<script>
  document.querySelector('.header-title-logo a, .header-mobile-logo a').setAttribute('href', '/01-home');
</script>

Can anyone help?

Thanks so much!

Emma

Posted
On 8/6/2024 at 4:42 PM, Emma_23 said:

Hello,
Thank you for sharing this! It worked perfectly for desktop but not for mobile? https://www.agonyecstasygallery.com/ is the landing/'splash' page but I would love the header navigation logo to link to https://www.agonyecstasygallery.com/01-home  on both mobile and desktop.

I used the code: 

<!-- Redirect Site Title Logo -->
<script>
  document.querySelector('.header-title-logo a, .header-mobile-logo a').setAttribute('href', '/01-home');
</script>

Can anyone help?

Thanks so much!

Emma

Use this

<!-- Redirect Site Title Logo -->
<script>
  document.querySelector('.header-title a').setAttribute('href', '/01-home');
</script>

 

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.