Jump to content

What's the CSS to change the link on my site title?

Go to solution Solved by CelsoDiniz,

Recommended Posts

  • Solution

Found it:

For those who are having trouble changing their site title link that is text based (not logo) the following code is easier to use (doesn't require you finding your site title and changing the code).

<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>

<script>$(document).ready(function () {
          $(".site-title a[href]").attr("href", "/blog");

Copy all the code above and go to PAGE SETTINGS > ADVANCED > HEADER CODE INJECTION and paste it there.

change the "/blog" part near the end of the code to where you want to redirect to. (external sites also work but must have full html address.

Hope this helps!

Benjamin Lee@itchban / www.itchban.com

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.