Need Help to Customize GeneratePress Post Metadata !!
-
Hello David,
Hope you’re doing well.I want to show my last updated date metadata (date, time, and author) like the below image. You can see in the below image that the last updated date metadata is showing between the two horizontal lines. So please help me to show my post metadata like the image below.
The page I need help with: [log in to see the link]
-
Hi there,
Looks like you are currently using this code for the entry meta:
https://docs.generatepress.com/article/entry-meta-style/#example-1Try removing that, then use method instead:
https://docs.generatepress.com/article/show-the-updated-post-date/Let me know if this helps 🙂
OK so the border is what you are after?
If so try this CSS:
.entry-meta { border-top: 1px solid #000; border-bottom: 1px solid #000; padding: 5px 0; }Try increasing the
5pxpadding in my code above:
https://wordpress.org/support/topic/need-help-to-customize-generatepress-post-metadata/#post-13405948Leo, I am not so technical so I am sharing the blog post link, please check it and tell me what px padding to use in css code.
Post: bloggingguidance.com/best-blogging-niches
Try something like
22px.Leo, the below CSS is working perfectly but the 2 horizontal lines are also showing on the homepage. I want these 2 horizontal lines only on the post and not on the homepage so please help me to fix this problem.
.entry-meta { border-top: 1px solid #000; border-bottom: 1px solid #000; padding: 22px 0; }Edit it to this:
.single .entry-meta { border-top: 1px solid #000; border-bottom: 1px solid #000; padding: 22px 0; }Leo, after applying the above css code, I got my desired result but when I compare with another website. I noticed that my horizontal lines look bold and the horizontal lines of another website look simple. I don’t want my horizontal lines to look bold so please see the image below and please help me to fix this problem.
Hi there,
change the colors in Leos code ie.
#000to a lighter colour eg.#cccYour CSS will look like this:
.single .entry-meta { border-top: 1px solid #ccc; border-bottom: 1px solid #ccc; padding: 22px 0; }
The topic ‘Need Help to Customize GeneratePress Post Metadata !!’ is closed to new replies.





