Archived topic
Add html code to all the posts after specific paragraph
5 replies · Started by Nathan on March 6, 2023
Hello,
I'm trying to add an email sign-up form to all my posts and I don't see a way to add it to all the posts at the same time.
I would like to add this email sign-up form to all the posts after a specific paragraph or % of the post read. How could this be done?
I see that I have two ways to add this code to the website or html or Javascript Snippet. Which way would be the best to add the form to all the posts at the same time?
Thank you
Hi Nathan,
Can you try this solution?
https://generatepress.com/forums/topic/customised-elements/#post-2371591
I added the snippet using the plugin then I added the hook in elements and still doesn't show in the posts.
Hi Nathan,
What's the code for the sign-up form? Is it a shortcode?
If so, can you check if "Execute Shortcodes" is enabled in the Hook Element settings?
Now it works! Thanks! It looks like it just needed some time to get the code all over the website.
You're welcome, Nathan!