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

Re-direting click through logo on LANGE templates

Question

Hello everyone!

I am using LAnge template and have a cover age for my website (set as home page).

Once I get into the actual website thoug I would like that, clicking on the site logo at the top, it would re-direct on a different page (not having to go back to cover page).

Is there a way to do this?

 

Thank a lot

 

Federico

Edited by federocolo

Share this post


Link to post

3 answers to this question

Recommended Posts

  • 0

The problem was that my code was trying to change site title rather than site logo link

It should now be working

The code is

<script>
window.Squarespace.onInitialize(Y, function(){
	var homelink = document.querySelector('.logo-image a');
	if (homelink) {
	  homelink.setAttribute('href', '/projects')
	}
});
</script>

Note that you should not include the full url in your links. Instead use the part from the first '/' character. So /projects

 

 

Edited by colin.irwin

Please hit LIKE to share your appreciation of posts that are helpful or useful. 

The like button is somewhere over thereover-there.jpg

Of course, Likes don't pay the bills.. If you're looking for a Squarespace Developer you can hire me here

Share this post


Link to post
  • 0

Change /whatever to your desired url slug and then Insert the following into the footer injection point.

<script>
window.Squarespace.onInitialize(Y, function(){
	var homelink = document.querySelector('.site-title a');
	if (homelink) {
	  homelink.setAttribute('href', '/whatever')
	}
});
</script>

 

 


Please hit LIKE to share your appreciation of posts that are helpful or useful. 

The like button is somewhere over thereover-there.jpg

Of course, Likes don't pay the bills.. If you're looking for a Squarespace Developer you can hire me here

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