Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0
melissahurt

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

Question

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!

Share this post


Link to post

7 answers to this question

Recommended Posts

  • 1

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.


sf-digital-signature-logo-email145.png.46606a2288a2847f44d81b9b7b58f3a5.png
Hi, I'm Paul, founder of SF Digital, a specialist company building the features that Squarespace didn't include
I am a Squarespace Developer and Squarespace Circle Leader with a
strong reputation on the Squarespace Forum. I'm trusted by thousands of Squarespace users worldwide, including designers, freelancers, business owners and agencies. My extensions add capabilities to Squarespace websites around the globe. They include the Enquiry Form ExtensionDate Picker Extension and Age Verification ExtensionNeed a custom Squarespace extension? Tell me about the functionality you need. Note that some links in my posts may be affiliate links.

Share this post


Link to post
  • 1
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>

 


You can send your question to my email to get faster answer.

How to Setup Password & Share URL - Free Templates - Free Code - CSS ID List

Share this post


Link to post
  • 0

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. 

 

Share this post


Link to post
  • 0

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


sf-digital-signature-logo-email145.png.46606a2288a2847f44d81b9b7b58f3a5.png
Hi, I'm Paul, founder of SF Digital, a specialist company building the features that Squarespace didn't include
I am a Squarespace Developer and Squarespace Circle Leader with a
strong reputation on the Squarespace Forum. I'm trusted by thousands of Squarespace users worldwide, including designers, freelancers, business owners and agencies. My extensions add capabilities to Squarespace websites around the globe. They include the Enquiry Form ExtensionDate Picker Extension and Age Verification ExtensionNeed a custom Squarespace extension? Tell me about the functionality you need. Note that some links in my posts may be affiliate links.

Share this post


Link to post
  • 0

Thans Paul & others. Figured it out with the help of Tuaphan (SS Circle hero).

Used this script:

<script>

  document.querySelector('.header-title-logo a').setAttribute('href', '/home');

</script>

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...