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

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


melissahurt
Go to solution Solved by paul2009,

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!

Link to post
  • Answers 7
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

Popular Posts

It's usually a case of adding something like this to Settings > Code Injection > Footer: window.Squarespace.onInitialize(Y, function(){   document.querySelector('.Header-branding').setAttrib

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 helping Squarespace users by building the features that Squarespace didn't include.
Explore our range of Squarespace Extensions, including the Wishlist, and Datepicker Extension or book a Squarespace Expert for 1:1 help. Note that links in my posts may be affiliate links.

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 detail answer. / How to Setup Password & Share URL

--- Happy New Year

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. 

 

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 helping Squarespace users by building the features that Squarespace didn't include.
Explore our range of Squarespace Extensions, including the Wishlist, and Datepicker Extension or book a Squarespace Expert for 1:1 help. Note that links in my posts may be affiliate links.

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>

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