Jump to content

Change default link from calendar event thumbnails from event listings to contact page

Recommended Posts

  • Replies 5
  • Views 182
  • Created
  • Last Reply

Top Posters In This Topic

On 5/22/2023 at 2:44 PM, ruralstudio said:

Hi there,

 

I am trying to change the default link when a user clicks on a thumbnail image on an events calendar item so that it takes them to the contact page (https://bobcat-purple-8ttl.squarespace.com/contact) rather than open up an event listing (blog) page. 

 

Does anyone know if this is possible?

 

Thanks!

Clicking on these >> redirect to Contact Page?

image.thumb.png.cbf42712b988fbe1fa39b4a71d536876.png

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 2 weeks later...

Add to Settings > Advanced > Code Injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.3/jquery.min.js"></script>
<script>
jQuery(document).ready(function($){
  setTimeout( function() {
          $('a.background-image-link').attr('href','/contact');
    }, 4000);
})
</script>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.