Archived topic
Add Image
5 replies · Started by Husnain on January 28, 2021
Hi,
I wanted to know how do I add one Image to all my blog posts.
I have a disclaimer image I wanted to add to all my blog posts without manually adding it to each posts and I wanted to add it under the blog featured image.
Looking forward to your reply.
Thanks
Husnain
Hi there,
A hook element would be what you are looking for:
https://docs.generatepress.com/article/hooks-element-overview/
You can see where they are located here:
https://docs.generatepress.com/article/hooks-visual-guide/
And the display rules you are after would be Post > All posts.
Let me know if this helps :)
Hi Leo,
Thank you for your message.
I am creating a hook but can seem to find an option where i can add an image from my media library to the hook.
Please can you help with this?
Thanks
Husnain
Hi there,
with the Hook Element you would have to add it manually using HTML eg.
<img class="my-custom-class" href="full_url_to_image_url" />
Or instead of the Hook element you can use a Block Element:
https://docs.generatepress.com/article/block-element-overview/
It provides the block editor with the same hook options.
Awesome!
Thank you so much for this.
You're welcome