[Resolved] How to put div.notice below title tag

Home Forums Support [Resolved] How to put div.notice below title tag

Home Forums Support How to put div.notice below title tag

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1112098
    Chris

    I linked to the website that has the code.

    I’m wondering how do you add this line: http://prntscr.com/qepecd below title as div.notice tag. And is it possible to make it default for all blog posts?

    #1112134
    David
    Staff
    Customer Support

    Hi there,

    you can use a Hook Element:

    https://docs.generatepress.com/article/hooks-element-overview/

    You will probably want the after_entry_title hook

    #1112145
    Chris

    Great, what do I put in the code line: http://prntscr.com/qepzzr

    #1112164
    David
    Staff
    Customer Support

    The HTML you want to display eg.

    <div class="amz-disclaimer">*Your Disclaimer text here</div>

    After that you can style it with some CSS like so:

    .amz-disclaimer {
        text-align: center;
        font-style: italic;
        font-size: 14px;
    }
    #1112170
    Chris

    Sweet, thank you!

    #1112173
    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.