Jump to content

Need logo to link to my welcome page, not my landing page

Go to solution Solved by paul2009,

Recommended Posts

I need the logo on my home page (technically, my welcome page) to link to my welcome/home page and NOT  my landing page. I changed the code in the footer, but I need to change the header link. The code there is very long!  Not sure what to change. Who can advise, please? I have the Sonora template. Thanks!

Link to comment
  • Solution

It's usually a case of adding something like this to Settings > Code Injection > Footer:

window.Squarespace.onInitialize(Y, function(){
  document.querySelector('.Header-branding').setAttribute('href', '/about-us-sonora');
});

Change '/about-us-sonora' to be the URL of the page you want visitors to reach when they click the logo.

Let me know how you get on. As you didn't include a working link to your site in the question I wasn't able to test it.

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™.
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Buy me a coffee

Link to comment
  • 5 weeks later...
19 minutes ago, junecz said:

This didn't work for me. I want the logo image on this page Snyder-Group.com to link to this page. I replaced .Header-branding with .site-branding and made the needed change to the url, but it's still linking to the home page. Appreciate any other ideas.

replace to .image a

<script>
  window.Squarespace.onInitialize(Y, function(){
  document.querySelector('.image a').setAttribute('href', '/about-us-sonora');
});
</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
  • 2 weeks later...

I have the same problem with the AVENUE template.

Id like to ask Paul2009 and others, if they now a code, that works with AVENUE (to make site icon link, NOT to the homepage (the cover page), but to my index page (or any other, for that sake). 

 

I have used another code injection for another site, that actually makes the site icon link to chosen page, but with Avenue, something else is messed up, so that the index page malfunctions. 

 

Link to comment

@peterbjerg It helps us if you can provide a working link to the site.

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™.
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Buy me a coffee

Link to comment
  • 2 months later...

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.