Jump to content

Different Site Logo Link on Member Pages

Go to solution Solved by Matthew26,

Recommended Posts

Hi all,

I know how to change the site logo link on my website, however, I wonder if it is possible to change this link on my member pages so that they don't leave the member area when clicking on the site logo? 

Any help with this would be great! Thank you! 

Link to comment
  • Solution

Spoke too soon!  I managed with this code in the footer: 

<script>
  var url = window.location.href;
  var headerLogoLink = document.querySelector('.header-title-logo a');
  
  if(url.indexOf("/put-page-here") !== -1){
    headerLogoLink.setAttribute('href', "https://www.yoursitehere.com");
  } 
  else {
    headerLogoLink.setAttribute('href', "https://www.yoursitehere.com/home");
  }
</script>

Link to comment
  • 5 months later...

Create an account or sign in to comment

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

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.