Jump to content

Change site logo URL

Go to solution Solved by Web_Solutions,

Recommended Posts

Posted

Hi guys im trying to change the Header logo URL with the code below, but its not working. Can anyone help me please? very new to 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", "http://www.learnonlinevideo.co.uk");
        });
</script>

 

Posted

Can you share your website URL?

Where are you adding this code?

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?

  • Solution
Posted
37 minutes ago, shaundesigner said:

im adding the code here -  website/website tools/code-injection

Here is the code. Add these code on Code Injection > Header Section.

<script src="https://code.jquery.com/jquery-3.6.3.min.js"></script>
<script>
$(function(){
   $('.header-title-logo a').attr("href", "http://www.learnonlinevideo.co.uk");
});
</script>

 

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.


 

Posted
2 minutes ago, Web_Solutions said:

Here is the code. Add these code on Code Injection > Header Section.

<script src="https://code.jquery.com/jquery-3.6.3.min.js"></script>
<script>
$(function(){
   $('.header-title-logo a').attr("href", "http://www.learnonlinevideo.co.uk");
});
</script>

 

thank you for that, ive done that but its not directing to the new site??

Screenshot 2023-11-10 at 10.56.33.png

Posted
3 minutes ago, shaundesigner said:

thank you for that, ive done that but its not directing to the new site??

Screenshot 2023-11-10 at 10.56.33.png

It is working. You should put the URL here(See the image), there you want to redirect the logo

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


 

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.