[Resolved] Add Image

Home Forums Support [Resolved] Add Image

Home Forums Support Add Image

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1637588
    Husnain

    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

    #1637652
    Leo
    Staff
    Customer Support

    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 🙂

    #1638490
    Husnain

    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

    #1638509
    David
    Staff
    Customer Support

    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.

    #1638637
    Husnain

    Awesome!

    Thank you so much for this.

    #1639240
    David
    Staff
    Customer Support

    You’re welcome

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.