- This topic has 5 replies, 3 voices, and was last updated 6 days, 23 hours ago by David.
May 14, 2022 at 12:52 pm #2219722Jason
A 3rd party contact form plugin allows me to use this code to trigger a pop up:
< a href = “void (0) ” >Yes! I Want This!
How do I insert this code inside a Generate press button?
I can overwrite the button block code starting at: href=”
But I also get a block editor error, where WordPress prompts me to correct the code.
Is there a cleaner way to put this code inside a button?May 14, 2022 at 7:49 pm #2219831LeoStaffCustomer Support
I believe this should help:
Let me know 🙂May 15, 2022 at 12:39 am #2219917Jason
Hi Leo –
Thank you for your feedback.
If I understand correctly, I would add a data attribute and drop the Java there?May 15, 2022 at 4:38 am #2220009DavidStaffCustomer SupportMay 17, 2022 at 5:47 am #2222268Jason
The plugin is from the email marketing company Birdsend.
The Birdsend plugin provides a text link to trigger an opt-in pop-up. The text link works, without error. Here is the code:
My goal is to insert the code into the GeneratePress theme button style. This is what I attempted, which works – but also gives me a block error warning:
The error is what prompted me to reach out.May 17, 2022 at 6:18 am #2222309DavidStaffCustomer Support
The editor won’t allow edits to a Blocks HTML – as it has to be validated.
And to add the
data-attribute to that block require GenerateBlocks Pro.
Its an option under the Advanced tab.
Also worth checking first that adding
If you don’t use Pro then you would need to write some HTML using a HTML Block for your button. And then style it with some CSS. Let us know if you need assistance with that.
- You must be logged in to reply to this topic.