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.


World-class Squarespace Developer and Squarespace Circle Leader with a strong reputation on the Squarespace Forum.
I'm trusted by hundreds of Squarespace users worldwide, including designers, freelancers, business owners and big agencies.

I can tackle anything from small tweaks to full websites and I'm available for short and long bookings (min. 1 hour).
Book via my website giving as much notice as possible. Note that I'm usually booked 4 - 6 weeks in advance for jobs longer than 2 hours.
Prebuilt Squarespace Extensions
Custom Squarespace Extensions: Tell me about the functionality you need

**NEW** Our popular Enquiry Form ExtensionDate Picker Extension and Age Verification Extension are now Squarespace 7.1 compatible.

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>

 


Send me a message if you have any questions (free 10 minutes).

4000+ free code: Adirondack - Avenue - Brine - Bedford - and more (all 7.0 template & 7.1)

Useful guide: How to share url (trial plan) - 2 languages site - 3 languages

Plugins: Product Enquiry Form - Product Color/Image Swatch VariantLightbox Anything

Learn CSS Basic: Treehouse - W3Schools - Flexbox

Other groups: SS Customization Resource Group - SS CSS Support - SS Community

 

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.


World-class Squarespace Developer and Squarespace Circle Leader with a strong reputation on the Squarespace Forum.
I'm trusted by hundreds of Squarespace users worldwide, including designers, freelancers, business owners and big agencies.

I can tackle anything from small tweaks to full websites and I'm available for short and long bookings (min. 1 hour).
Book via my website giving as much notice as possible. Note that I'm usually booked 4 - 6 weeks in advance for jobs longer than 2 hours.
Prebuilt Squarespace Extensions
Custom Squarespace Extensions: Tell me about the functionality you need

**NEW** Our popular Enquiry Form ExtensionDate Picker Extension and Age Verification Extension are now Squarespace 7.1 compatible.

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