Archived topic
After Blog Post Call To Action Block
1 reply · Started by Edmund on January 17, 2020
Guys, I'm trying to work out a way to use the functionality of the elements to insert an editable widget block or content block containing a call to action, offer or downloadable at the bottom of blog posts. There are other solutions but want to use the generate press elements feature to control what and where they appear.
BasicallY I want to be able to show or not show specific cta's after posts.
Can anyone link me to any resources?
Thanks
Ed
Hi there,
The hooks element should be what you are looking for:
https://docs.generatepress.com/article/hooks-element-overview/
The after_content hook should help:
https://docs.generatepress.com/article/hooks-visual-guide/#single-post
You can use the display rules to show/hide on specific pages.
Let me know if this helps :)