Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

change link url on the calendar thumbnail on events page squarespace


Question

Site URL: https://runatitshouting.co.uk/courses

where the calendar thumbnail is to the top left on each event. this is clickable and takes you to another purchase page. can i possible change this so when you click on the calendar thumbnail i can take them to a customised url. i want to take the user to a page with a calendar on if possible .  All i need to know if how i change the url for the thumbnail 

 

thank you in advance x

Link to post
  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

1 answer to this question

Recommended Posts

  • 0

add this to Home > Settings > Advanced > Code Injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script>
$(document).ready(function() {
  // check by tuan
    // for event 1
	$("article.eventlist-event:nth-child(1) .eventlist-column-thumbnail").attr('href','https://beaverhero.com');
      // for event 2
	$("article.eventlist-event:nth-child(2) .eventlist-column-thumbnail").attr('href','https://google.com');
});
</script>

 

Edited by tuanphan

You can send your question to my email to get faster answer. / How to Setup Password & Share URL 

-- I'm Tuan, work for a non-profit project (build free libraries). I check the forum once or twice a day to help out the community. If you don't see me answering your question, you can send it to the email above. 

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...