Jump to content

How to change Header Logo's Link on one page.

Recommended Posts

I've successfully added the code to redirect my header logo to my true home page since my landing page is now the designated as the home page in Squarespace.  (This works throughout the entire site.) However, I have one page I would like to have the header logo send me to a specific page when clicked... kind of an alternative home page.  Is there a code that I can load for just that page?

Link to comment
  • Replies 3
  • Created
  • Last Reply
  • 4 months later...

Hi @Gallery_Films

On 3/26/2020 at 3:52 AM, Gallery_Films said:

I would like to have the header logo send me to a specific page when clicked... kind of an alternative home page.  Is there a code that I can load for just that page?

Were you able to figure this out?  

On 3/27/2020 at 1:01 AM, tuanphan said:

If yes, add script code to Page Settings > Advanced > Header. Each page has page header.

@tuanphan I attempted to put the same code in page header but it isn't working. Intention is to replace and relink logo image on certain page.

https://pumpkin-marlin-3wxs.squarespace.com/creative/

PW: breathetest

Any help appreciated

Link to comment

Add to Page Header

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script>
$(document).ready(function() {
    $(".header-title-logo a").attr("href", "https://beaverhero.com");
});
</script>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Archived

This topic is now archived and is closed to further replies.

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