Archived topic
Put text above post date
3 replies · Started by Joseph on January 16, 2021
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
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.
Thank you David.
This worked perfectly (easy to do, as well).
Glad to be of help.