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

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


Sabrina10

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. 

Link to comment

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

sf-digital-signature-logo-email145.png.46606a2288a2847f44d81b9b7b58f3a5.png
Hi! I'm Paul, an independent Squarespace Consultant since 2007 and founder of SF Digital, building the features that Squarespace didn't include. Our mini-extensions allow you to pick dates in any format, show prices in other currencies, take orders without payment or improve your cartI value honesty, integrity, transparency and respect . Links in my posts may refer to SF Digital products or may be affiliate links.

Link to comment
  • 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. 

sf-digital-signature-logo-email145.png.46606a2288a2847f44d81b9b7b58f3a5.png
Hi! I'm Paul, an independent Squarespace Consultant since 2007 and founder of SF Digital, building the features that Squarespace didn't include. Our mini-extensions allow you to pick dates in any format, show prices in other currencies, take orders without payment or improve your cartI value honesty, integrity, transparency and respect . Links in my posts may refer to SF Digital products or may be affiliate links.

Link to comment
  • 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

 

Email me if you have need any help (free, of course.). Answer within 24 hours.

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
  • 1
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

Email me if you have need any help (free, of course.). Answer within 24 hours.

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
  • 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
Link to comment
  • 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

Link to comment
  • 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
Link to comment
  • 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.

Email me if you have need any help (free, of course.). Answer within 24 hours.

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

Email me if you have need any help (free, of course.). Answer within 24 hours.

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

 

Email me if you have need any help (free, of course.). Answer within 24 hours.

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
  • 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?

Email me if you have need any help (free, of course.). Answer within 24 hours.

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
  • 0
1 minute ago, StrawberryFrog said:

Would anyone know how to add this to "Lange" template?

Thanks!

Can you share link to your site or lange template url?

Email me if you have need any help (free, of course.). Answer within 24 hours.

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
  • 0
On 4/30/2020 at 10:01 PM, StrawberryFrog said:

Here is the site:

https://www.strawberryfrogclient.com/

Thanks for your assistance!

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

Add to Code Injection Footer

Email me if you have need any help (free, of course.). Answer within 24 hours.

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

Create an account or sign in to comment

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

×
×
  • Create New...