Jump to content

How do I add an image in a code block that also links off-site?

Recommended Posts

Site URL: https://www.loonlakeassociation.com/membership-application-online

I have a custom form that site visitors can use to join/renew membership. The form links to PayPal. The paypal logo image is broken BUT the text on the page is properly linked. Site visitors think that because the image link is broken they can't renew.

I can't figure out how to include the image AND get the link to work properly.

This is the code I have in place now:

<input style="margin:20px 0;" type="image" src="https://images.squarespace-cdn.com/content/v1/627835535d79b00de8b2bab2/daa8f9dc-f8f1-418a-bda6-b75255035da5/paypal_join.jpg?format=2500w" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">

The image I want to link to is here:

https://images.squarespace-cdn.com/content/v1/627835535d79b00de8b2bab2/5f21634f-3b83-4cef-ae8f-8906167ae3c7/paypal_join.jpg?format=300w

Can someone tell me what I need to do to get the image to display AND link to PayPal. I can provide full script if needed.

Thanks in advance.

Link to comment
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

3 hours ago, mk_kim said:

I have a custom form that site visitors can use to join/renew membership. The form links to PayPal. The paypal logo image is broken BUT the text on the page is properly linked. Site visitors think that because the image link is broken they can't renew.

I'm intrigued to understand why you are using a custom form and a PayPal button when you can take the payments using the built-in Squarespace Commerce features and the built-in PayPal (or Stripe) integration.

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™.
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Buy me a coffee

Link to comment
On 7/1/2022 at 2:43 PM, paul2009 said:

I'm intrigued to understand why you are using a custom form and a PayPal button when you can take the payments using the built-in Squarespace Commerce features and the built-in PayPal (or Stripe) integration.

This is a volunteer organization with multiple cooks in the kitchen. What you're proposing makes the most sense but I need to do this in the meantime. Great question!

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.