Jump to content

Change Logo Link in Cart Page

Recommended Posts

Hi,

I am looking to change the logo link in the cart page specifically.

I have managed to do this on various other pages using PAGE HEADER CODE INJECTION in 'Advanced', however, I believe I may need further code for adding this to #cart via the CSS.

Here is the code I have been using in the PAGE HEADER CODE INJECTION for the other pages that I have successfully changed.

<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://bravehero.com");
});
</script>

Thanks in advance.

Antony

Link to comment
  • Replies 2
  • Views 1.1k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

You can add code to Site wide Code Injection (Settings > Developer Tools > Code Injection > Footer) with this code (I added cart id)

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script>
$(document).ready(function() {
    $("body#cart .header-title-logo a").attr("href", "https://bravehero.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

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.