Tinyletter in sidebar widget
As a final step in the newsletter plugin transition covered more in #11878 and #11647, I'm working with the CPCP (https://cpcp.commons.gc.cuny.edu/) to put a signup box in the sidebar of their homepage linked to their new Tinyletter account. The code provided by Tinyletter is below. When I try to add it as a Custom HTML widget in Wordpress, I'm told that the <form> and <input> tags aren't allowed. Perhaps we can do a workaround or simple custom widget on this? I believe there's already some code out there from others, like here: https://github.com/frebro/wp-tinyletter-widget
<form style="border:1px solid #ccc;padding:3px;text-align:center;" action="https://tinyletter.com/cpcp" method="post" target="popupwindow" onsubmit="window.open('https://tinyletter.com/cpcp', 'popupwindow', 'scrollbars=yes,width=800,height=600');return true"><p><label for="tlemail">Enter your email address</label></p><p><input type="text" style="width:140px" name="email" id="tlemail" /></p><input type="hidden" value="1" name="embed"/><input type="submit" value="Subscribe" /><p><a href="https://tinyletter.com" target="_blank">powered by TinyLetter</a></p></form>
#1 Updated by Boone Gorges over 1 year ago
- Category name set to WordPress Plugins
- Status changed from New to Testing Required
- Target version set to 1.16
The plugin you linked looks good to me, Colin. I've added it as part of the 1.16 release in https://github.com/cuny-academic-commons/cac/commit/a2c2e47aa0531a819ebd4986ebd715b25680402d and pulled to cdev. Could you give it a test on a cdev site, to ensure it works the way you'd expect?
#2 Updated by Colin McDonald over 1 year ago
Hi Boone, sorry about my delay on this. I tested on the dev site and all seems right - I was able to activate the plugin, add the signup form to a test site sidebar, and then subscribe via that sidebar widget in Tinyletter. I think we're good to proceed, and when it's released I'll close things up with the CPCP and their site sidebar. Thanks!