Welcome

This code snippet library features advanced modifications you can make to customize your Squarespace 5 site. While we do not provide custom programming support, we've assembled the following guides as a reference to help you get started.


HTML Guide

CSS Guide

Javascript Guide

Tuesday
Jul272010

Change the Site Banner Link URL

Example: Change the default site banner link from your home page url to any other link. 

Note: This script redirects the banner image link within the header area of your site to a page you choose — instead of to the default home page you may have set. Using the per page modification you can redirect the banner link on specific pages within your site to a link of your choice.

/* Change the site banner url for every page on your site. */

In Extra Header Code Injection put:

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script type="text/javascript">
$(function(){
$('#bannerWrapper a').attr({href:"http://www.your_link.com"});
});
</script>
/* Change the site banner link url per page using module page ID. */

In Extra Header Code Injection put:

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script type="text/javascript">
$(function(){
$('#modulePage1234567 #bannerWrapper a').attr({href:"http://www.your_link.com"});
});
</script>



« Add A Dynamic Hover Tool-Tip | Main | Change the Site Title Link URL »