Best answer

Help with a button in a gmail message that actually links?

  • 6 March 2021
  • 4 replies
  • 829 views

Userlevel 1

Hi all,

I’m new to HTML (as of 1 hour ago) but amazed thanks to w3schools how much I figured out already. I wanted to add some functionality to my gmail message with zappier so choose HTML. I’m trying to create a button that is a hyperlink. I have the botton up and running, but it won’t link. It works in the w3schools test page, but not when I actually run the test zap. Thoughts? or is it gmail?

Here’s what I have:

<p>How it works: Open the profile at <button onclick="window.location.href='https://www.klouf.com/steph';"> View Here </button> 

Thanks for any insight! 

 

cheers,

Jessica

 

 

icon

Best answer by robschmidt 7 March 2021, 03:35

View original

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

4 replies

Userlevel 7
Badge +14

Hi @Jessica Seepersad 

Article: https://www.w3schools.com/html/html_links.asp

Try wrapping the button in a <a href> tag.

<p>How it works: Open the profile at <a href=”https://www.klouf.com/steph”><button>View Here</button></a>

Userlevel 7
Badge +9

Hi @Jessica Seepersad,

If you’d like to create an HTML email through Gmail/Zapier, I’d suggest you use a WYSIWYG or visual editor. The reason is that writing raw code can have errors in them, so it’s better to use a tool that’ll help you visualize your code.

Here’s an online editor you can use: https://html-online.com/editor/

Just build the email as you’d like, then get the HTML code and paste it into the Zapier email body field.

 

Userlevel 1

@robschmidt, wow, this is great, thank you!

Userlevel 1

Thanks @Troy Tessalone ! appreciate it