Site logo

[Resolved] Create custom text which automatically appears on all pages

Home Forums Support [Resolved] Create custom text which automatically appears on all pages

Home Forums Support Create custom text which automatically appears on all pages

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2532517
    Derek

    Hi There,

    I would like to create a small box (border) that outlines about 2 lines of text on every post on my website. This would also show up on any new posts I create. What is the best way to do this??

    Thanks for your help!

    #2532524
    Fernando
    Customer Support

    Hi Derek,

    The best way to do this is through a Block Element. The concept would be similar to an Author Box. See this for example: https://www.youtube.com/watch?v=HMhUo91RjsE

    To clarify, where would you want this “outlined Text box” on your Posts?

    #2533765
    Derek

    Hi Fernando,

    Thanks for the reply. Yes I would like this “outlined text box” to appear at the top of every post before the title. Do you think this is the same process?

    #2533770
    Fernando
    Customer Support

    I see. You can use a Block Element – Hook. Hook it to after_header. You can see some examples here: https://docs.generatepress.com/article/block-element-hook/

    #2535105
    Derek

    Thanks for your help!

    #2535110
    Fernando
    Customer Support

    You’re welcome, Derek!

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