Archived topic
Full-Width Call to Action on All Posts
2 replies · Started by Connor R on June 19, 2020
Hi there,
As I am working on migrating from Divi, I have a full-width call-to-action with a background image that I would like to appear on all posts.
I understand how I could make this using GenerateBlocks, but I am not sure how I could get something like this to appear automatically on every post. The URL is a sample post that shows what I am trying to achieve.
Thanks in advance for the help!
For further clarity, I have created a reusable block. Is there a way to add this to every post?
Also, if I delete the draft post where I created the reusable block, will it also delete the reusable block?
Hi Connor,
Is there a way to add this to every post?
Unfortunately not yet. You'd need to use a hook to add something to all posts:
https://docs.generatepress.com/article/hooks-element-overview/
Unfortunately the hook element editor isn't Gutenberg compatible right now so GB cannot be used.
We are activately working on making Elements Gutenberg compatible. Should have some exciting news soon :)
Also, if I delete the draft post where I created the reusable block, will it also delete the reusable block?
I don't think so but not 100% sure.