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

How do i redirect the logo link to my homepage instead of a cover page?

Question

hello! ive been desperately looking around for a solution on redirecting the logo on my site to the homepage rather than the cover page. I made the cover page my homepage but I want it to be a one time thing. i want to make sure that when you click on my logo it redirects you back to the home page, not cover page. ive tried many header/footer injections and it sill does not work. It either leads me to the cover page again or google.com for some reason. Any help would be greatly appreciated! 

 

im using the tremont template

 

i would post my website however it is unfinished. i could make it public for the sake of this form, but because it is unfinished i do not want other people outside this form to stumble upon it, if that makes sense. 

Share this post


Link to post

20 answers to this question

Recommended Posts

  • 1

Before you start, please remove the incorrect code that you've added to both the HEADER and FOOTER boxes in Settings > Advanced > Code Injection as these will both cause errors.

 

As you mentioned, you are using the Endeavor Framework ("Tremont Family") so this code will work with all the templates in this family including Tremont itself, Camino, Carson, and Henson. 

The correct code to add to Settings > Advanced > Code Injection > FOOTER is:

<script>
  document.querySelector('.site-branding h1 a').setAttribute('href', '/home');
</script>

You can change the "/home" page reference to send users to a different page.

-Paul


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 currently booked until the end of May 2020.
Prebuilt Squarespace Extensions for Squarespace 7.0 and 7.1: Enquiry Form ExtensionDate Picker Extension and Age Verification Extension 
Custom Squarespace Extensions: Tell me about the functionality you need

**NEW** Our popular Wishlist extension is now Squarespace 7.1 compatible.

Share this post


Link to post
  • 1

I've answered this question a dozen or so times. Here's one example here:

If this doesn't work for your template and/or configuration, please post a working link to the home page (not cover page) of the website. If the site isn't live, we need you to set a password in the visibility settings and tell us what it is. 


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 currently booked until the end of May 2020.
Prebuilt Squarespace Extensions for Squarespace 7.0 and 7.1: Enquiry Form ExtensionDate Picker Extension and Age Verification Extension 
Custom Squarespace Extensions: Tell me about the functionality you need

**NEW** Our popular Wishlist extension is now Squarespace 7.1 compatible.

Share this post


Link to post
  • 1
4 hours ago, Loughlin said:

Is there a way to do this for Artesia layout?

 

https://www.vancollier.com/

Right now, it's just set to the regular homepage. But, I would like to add my Splash page as the homepage that you see when initially opening the site

replace 

.site-branding h1 a

with

.logo-image a

 


COVID-19: Free priority support for all users (29/03 - 30/04).

You can tag me (@tuanphan) or send to my email.

 

Share this post


Link to post
  • 0

@paul2009 gladly. i have seen the solutions you have graciously given in other forums but it didnt work for me, unfortunately. i tried plugging in that code but to no avail. it keeps bringing me back to the cover page instead of the home page. im unsure if im plugging the url wrong. i try plugging in the full url to the page or just the url slug but nothing works. 

 

Edited by Sabrina10
forgot to link it to home

Share this post


Link to post
  • 0
On 1/20/2020 at 7:52 AM, Loughlin said:

@paul2009Is there a way to do this for Artesia layout?

You should share link to your site


COVID-19: Free priority support for all users (29/03 - 30/04).

You can tag me (@tuanphan) or send to my email.

 

Share this post


Link to post
  • 0
On 12/28/2019 at 7:14 AM, paul2009 said:

Before you start, please remove the incorrect code that you've added to both the HEADER and FOOTER boxes in Settings > Advanced > Code Injection as these will both cause errors.

 

As you mentioned, you are using the Endeavor Framework ("Tremont Family") so this code will work with all the templates in this family including Tremont itself, Camino, Carson, and Henson. 

The correct code to add to Settings > Advanced > Code Injection > FOOTER is:


<script>
  document.querySelector('.site-branding h1 a').setAttribute('href', '/home');
</script>

You can change the "/home" page reference to send users to a different page.

-Paul

Is there a way to do this for Artesia layout?

 

https://www.vancollier.com/

Right now, it's just set to the regular homepage. But, I would like to add my Splash page as the homepage that you see when initially opening the site

Share this post


Link to post
  • 0

hi, I am currently stuck with the same old question, how can I redirect the title of the website the home page or a specific page instead of the cover page? 

I know the question has been asked and answered many times, I read everything and I tried copy-pasting suggested codes.. but it doesn't work and I am not sure what should be tweaked to make it work , so if someone could help me out with this one I would be thankful!

I'm pretty fresh in all the coding so without your help would not be able to fix it :) thanks in advance!

I'm using Wells template, Business plan.

www.vladimirshahinyan.com

Edited by shahinyan

Share this post


Link to post
  • 0
6 hours ago, shahinyan said:

hi, I am currently stuck with the same old question, how can I redirect the title of the website the home page or a specific page instead of the cover page? 

I know the question has been asked and answered many times, I read everything and I tried copy-pasting suggested codes.. but it doesn't work and I am not sure what should be tweaked to make it work , so if someone could help me out with this one I would be thankful!

I'm pretty fresh in all the coding so without your help would not be able to fix it :) thanks in advance!

I'm using Wells template, Business plan.

www.vladimirshahinyan.com

Your cover page title is not a link, so can't use above code.


COVID-19: Free priority support for all users (29/03 - 30/04).

You can tag me (@tuanphan) or send to my email.

 

Share this post


Link to post
  • 0

thanks a lot tuaphan for your reply 🙂

I've replaced the site title with a test logo image to try out but it still doesn't work with the code mentioned above :|

maybe it doesn't work on Wells template or I need to alter the code somehow?

Share this post


Link to post
  • 0
5 hours ago, shahinyan said:

thanks a lot tuaphan for your reply 🙂

I've replaced the site title with a test logo image to try out but it still doesn't work with the code mentioned above :|

maybe it doesn't work on Wells template or I need to alter the code somehow?

try changing again to title, and let me know, I will check again


COVID-19: Free priority support for all users (29/03 - 30/04).

You can tag me (@tuanphan) or send to my email.

 

Share this post


Link to post
  • 0
4 minutes ago, peterbjerg said:

What to do (which code) for sites made in Squarespace 7.1? Code examples above do not work

<script>
  document.querySelector('#site-title').setAttribute('href', '/home');
</script>

 


COVID-19: Free priority support for all users (29/03 - 30/04).

You can tag me (@tuanphan) or send to my email.

 

Share this post


Link to post
  • 0
5 minutes ago, peterbjerg said:

Wow FAST :-).. But its not a "site title" but a site logo

 

I checked on my ss 7.1 site. It uses site title

Can you share link to your site or 7.1 site with logo?


COVID-19: Free priority support for all users (29/03 - 30/04).

You can tag me (@tuanphan) or send to my email.

 

Share this post


Link to post
  • 0
7 minutes ago, peterbjerg said:

Yes the site is https://arena-2.squarespace.com, its pasword protected with: Arenasite

I presumes code should inject into footer, is that correct?

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

yes footer


COVID-19: Free priority support for all users (29/03 - 30/04).

You can tag me (@tuanphan) or send to my email.

 

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