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
  • Views 292
  • 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.

Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.

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.