Archived topic
How to customize Entry Meta ?
9 replies · Started by Ajay on August 23, 2021
Hi,
I am trying to customizing entry meta but did not get the exact look.
I need separator lines and the lines above and under the entry meta.
I want to look entry meta exactly like the screenshot which I attached for your reference.
https://www.screencast.com/t/O9d7nNQaPpSZ
Thanks
Though I followed the below post
https://generatepress.com/forums/topic/customizing-entry-meta/
added code using code-snippet plugin and css in additional-css section of the theme but did not get the desired result.
Hi Ajay,
That method with PHP and CSS is outdated.
Try using a block element post meta instead:
https://docs.generatepress.com/article/block-element-post-meta-template/
The example you want is actually one of the templates:
https://www.screencast.com/t/cFfWF94hI4aP
i am also unable to add that comment-icon next to comments entry
okay, thanks
I will try and let u know about the output
Sounds good.
Thanks Leo, it worked with out any issue.
Can I add Last Update Date along with text "Updated on" instead of publish date.
I added the css but it didn't work.
.posted-on .updated {
display: inline-block;
}
.posted-on .published {
display: none;
}
.posted-on .updated:before {
content: "Updated On";
}
You can just use a headline block with dynamic options:
https://docs.generatepress.com/article/dynamic-data/#updated-date
No CSS required.
Thanks once again Leo.
It worked :)
No problem :)