Jump to content

Changing image link in store

Recommended Posts

  • Replies 4
  • Views 199
  • Created
  • Last Reply

Top Posters In This Topic

On 2/4/2022 at 10:07 AM, denbystrange said:

Yup that exactly what I'm trying to do, thanks!

This is my the page through Squarespace account - https://practicalparentingantenatal.squarespace.com/booking

and online with domain - https://practicalparentingantenatal.co.nz/booking

I'm wanting to change the link for both 'Online Antenatal Course' and 'Online Baby First Aid Course', to different pages.

Add to Booking Page Header

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
$(document).ready(function() {
	$('div#thumb-online-antenatal-course a').attr('href','https://google.com');
	$('div#thumb-online-baby-first-aid-course a').attr('href','https://abc.com');
});
</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

Awesome! Works perfectly, thank you.

Reason I wanted it was to have my member sign ups for member areas in my store next to my products.

So I recreated the product pages but with member sign up buttons, and have relinked with your code.

Thanks again!

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.