I want to trigger a modal form when a visitor clicks a button. The form always opens in a separate tab and then only appears "on exit" as that is the trigger I've set because there is no "on click" option. I know I need to include the javascript to include the js file from convertkit to make the form appear on the same page. HOWEVER, I've been unable to find a way to do so using the Gutenberg editor. A custom HTML block doesn't work as WP apparently strips any script src="xxx" tags, or at least any that are not on the same domain as the site. I've also tried using some plugins but they either don't work (async loading) or wreak havoc with the page's design (normal loading), possibly because I can't put them directly above the form's trigger link. HOW TO DO THIS?

1 reply