[Resolved] Put text above post date

Home Forums Support [Resolved] Put text above post date

Home Forums Support Put text above post date

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1621055
    Joseph

    Hello support,

    I am using the ‘coach’ template for my website.

    Also, I am using the CSS from this page (https://docs.generatepress.com/article/show-the-updated-post-date/), to show the updated post date, rather than the published post date.

    I want to put text above the updated post date, on a seperate line. I also want this text to appear only in individual posts, and not on the general ‘posts page’. The text I wish to insert is ‘✓ Evidence Based’. I wish this text to appear in bold and blue (#008fe2), and in font sixe px15.

    Any help would be greatly appreciated.

    Thanks and regards
    Joe

    #1621413
    David
    Staff
    Customer Support

    Hi there,

    simple way is to create a new Block Element:

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

    Set your Text and icon in a headline block.
    Then select Hook: generate_before_content.
    Set you display rules to Posts > All Posts

    Just a note – make sure there is no empty paragraph block below your headline as WP will output this as well which will create extra space.

    #1628149
    Joseph

    Thank you David.

    This worked perfectly (easy to do, as well).

    #1628399
    David
    Staff
    Customer Support

    Glad to be of help.

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