Jump to content

change url of logo

Recommended Posts

  • Level 1
  • Circle Member

What code would I need to change the header logo url? I saw an answer from a while back that had the below code, but I believe it would need to be customized to go to my "main" page and I'm unsure where to edit it. 

 

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

<script>$(document).ready(function () {
         $(".logo a[href]").attr("href", "http://www.google.com/");
       });
</script>

 

I created a landing page to "enter website" and then made it the home page so that it would be the first thing visitors see when going to the website - now my previous homepage with I relabeled "main" will not be the url destination when you click the logo -- I've put this code into the Header under Code Injection in the Website Tools tab and nothing seems to have changed.  Any help would be greatly appreciated, thanks!

Link to comment
  • Replies 3
  • Views 730
  • Created
  • Last Reply

Top Posters In This Topic

  • 3 weeks later...

Unfortunately, my client would like me to keep it private until he launches.  I was able to successfully customize the footer code to make the logo url link to the new "home" page.  However, I ran into the same issue as some other folks here where this code worked on desktop but not mobile.  

If you have any advice for me without access to the actual website, it would be greatly appreciated!

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.