Buy me a coffee

Change Logo/Site Title Link

One page

Add this code to Page Header Code Injection of the page you want and click Save

<!-- one page -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
$(document).ready(function() {
$('a#site-title, .header-title a').attr('href','https://google.com');
});
</script>

Blog List Page

Add this code to Page Header Code Injection of Blog Page and click Save

<!-- Blog List Page -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
$(document).ready(function() {
$('.view-list a#site-title, .view-list .header-title a').attr('href','https://google.com');
});
</script>

Blog Post

Add this code to Post Blog Item Code Injection and click Save

<!-- Blog Post -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
$(document).ready(function() {
$('a#site-title, .header-title a').attr('href','https://google.com');
});
</script>

post-blog-item-code-injection-04-min

 

 

Event List

Add this code to Page Header Code Injection of Event Page and click Save

<!-- Event List -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
$(document).ready(function() {
$('.view-list a#site-title, .view-list .header-title a').attr('href','https://google.com');
});
</script>

Event Detail

Add this code to Page Header Code Injection of Event Page and click Save

<!-- Event Detail -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
$(document).ready(function() {
$('.view-item a#site-title,.view-item .header-title a').attr('href','https://google.com');
});
</script>

Shop/Category

Add this code to Page Header Code Injection of Store Page and click Save

<!-- Shop Category -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
$(document).ready(function() {
$('.view-list a#site-title, .view-list .header-title a').attr('href','https://google.com');
});
</script>

Individual Products

Add this code to Page Header Code Injection of Store Page and click Save

<!-- Individual Products -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
$(document).ready(function() {
$('.view-item a#site-title, .view-item .header-title a').attr('href','https://google.com');
});
</script>

Portfolio Page

Add this code to Page Header Code Injection of Portfolio Page and click Save

<!-- Portfolio Page -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
$(document).ready(function() {
$('.view-list a#site-title, .view-list .header-title a').attr('href','https://google.com');
});
</script>

Portfolio Items

Add this code to Page Header Code Injection of Portfolio Page and click Save

<!-- Portfolio Items -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
$(document).ready(function() {
$('.view-item a#site-title, .view-item .header-title a').attr('href','https://google.com');
});
</script>

Cart Page

Add this code to Code Injection>Footer and click Save

<!-- Cart Page -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
$(document).ready(function() {
$('body#cart a#site-title, body#cart .header-title a').attr('href','https://google.com');
});
</script>

Homepage Only

Add this code to Code Injection>Footer and click Save

<!-- Homepage Only -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
$(document).ready(function() {
$('body.homepage a#site-title, body.homepage .header-title a').attr('href','https://google.com');
});
</script>

Other Pages exclude Homepage

Add this code to Code Injection>Footer and click Save

<!-- Other Pages exclude Homepage -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
$(document).ready(function() {
$('body:not(.homepage) a#site-title, body:not(.homepage) .header-title a').attr('href','https://google.com');
});
</script>

Member Area Page

Add this code to the Member Area Page and click Save

<!-- Member Area Pages -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
$(document).ready(function() {
$('a#site-title, .header-title a').attr('href','https://google.com');
});
</script>

Desktop Only

Add this code to Code Injection>Footer and click Save

<!-- Desktop Only -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
$(document).ready(function() {
$('.header-display-desktop a#site-title, .header-display-desktop .header-title a').attr('href','https://google.com');
});
</script>

Mobile Only

Add this code to Code Injection>Footer and click Save

<!-- Mobile Only -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
$(document).ready(function() {
$('.header-displya-mobile a#site-title, .header-display-mobile .header-title a').attr('href','https://google.com');
});
</script>

Ask me a question, free

If your site is private or in trial, just setup password and share url. See how to: https://beaverhero.com/squarespace-how-to/
Please check your email carefully. Recently I got a lot of questions with wrong emails.

If you haven't heard from me within 24 hours please check your junk/spam folder