Jump to content

Can I make the landing page logo link to a page in Miller template?

Recommended Posts

  • Replies 1
  • Views 409
  • Created
  • Last Reply

Hey Chris, try adding this code to the Footer of the Code Injection section:


<script>
   YUI().use('node', 'transition', 'node-event-simulate', function(Y) {
     Y.on("domready", function(){
       Y.all('#collection-5ca7e49aeb393170cbb0a7df img[data-src*="Logo"]').each(function(){ 
         this.on('click',function(){ 
           window.location.href = 'http://www.google.com'; 
         }) 
       })
     })
   })
</script>

Don't forget to change the Google link to the one you want to use.

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.