Archived topic
Entry Meta in Header element
7 replies · Started by Dave on March 9, 2021
I would like to display the Entry Meta (Updated on and author) inside a header element for all my blog posts.
Is there a way to do this?
cheers,
Dave
Hi Dave,
GP Premium 2.0 offers dynamic content feature, with Generateblocks it's easy to use.
Here's a demo video for your refences:
https://youtu.be/yq6VcgU3Ufg
Let me know if it helps :)
That looks great but it is only on alpha and I will be pushing this site live in 2 weeks.
Is there a solution I can use in the meantime?
Cheers,
Dave
Yes, you could use this method for now:
Add {{post_date}} {{post_author}}as Header element's content.
And then add this CSS:
.single .page-hero time.updated:before {
content: "updated on: ";
}
.single .page-hero time.updated {
display: inline-block;
}
.single .page-hero time.entry-date.published {
display: none;
}
Then the element will show updated date instead of published date. :)
That worked. Is there a way to make the link color of the author white?
Cheers,
Dave
Yes, you could change the link color and link hover color in the header element > page hero since the author name is a link.
That worked. Thank you.
No problem :)