- This topic has 12 replies, 4 voices, and was last updated 1 year, 7 months ago by
David.
-
AuthorPosts
-
November 29, 2020 at 2:02 am #1556012
Amol Chavan
I want to add blog post meta like this as shown here in the screenshot:- https://ibb.co/ry310DS
My current one you can here: https://www.growthfunda.com/side-hustle/
Could you please help on this.
November 29, 2020 at 10:58 am #1556952Leo
StaffCustomer SupportHi there,
Is that just for single posts?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/November 29, 2020 at 7:56 pm #1557498Amol Chavan
Yes it’s for single posts not for Archives.
November 30, 2020 at 10:00 am #1558902Tom
Lead DeveloperLead DeveloperHi there,
I would remove the current styling you have (margin, border etc..), then do this:
.single .entry-meta { display: flex; border-top: 1px solid #000; border-bottom: 1px solid #000; padding: 5px 0; justify-content: center; } .single .entry-meta .posted-on { order: 1; } .single .entry-meta .byline { order: 2; } .single .entry-meta .comments-link { order: 3; } .single .entry-meta > * { padding: 0 10px; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentDecember 1, 2020 at 3:26 am #1560105Amol Chavan
I have added code as you mentioned but it’s looking something different. The author’s image is so big and the Meta sections are too big. I don’t want the author’s image too. I need exactly as shown in the previous attached image. Here is the link post-implementation of this code: https://ibb.co/27FNyW7
December 1, 2020 at 9:30 am #1561268Tom
Lead DeveloperLead DeveloperYou’ll need to remove the custom code you’ve added to add the image in the first place.
If you remove that code, the result should be very close to what you’re wanting.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentDecember 2, 2020 at 1:36 am #1563097Amol Chavan
Thanks got the same result. I just need all the text inside meta to be bold and there should be some more margin between Title & Meta. That’s it. Another problem I observe is that the meta look and feel breaks on the Blog Archive page. It looks like this: Amol ChavanOctober 24, 2020. The Author name & Date are touching each other. I need some space between them too.
December 2, 2020 at 6:44 am #1563688David
StaffCustomer SupportUpdate this CSS:
.single .entry-meta { display: flex; border-top: 1px solid #000; border-bottom: 1px solid #000; padding: 5px 0; justify-content: center; }
to:
.single .entry-meta { display: flex; border-top: 1px solid #000; border-bottom: 1px solid #000; padding: 5px 0; justify-content: center; margin-top: 1.5em; /* add space between title and meta */ font-weight: 700; /* Increase font weight */ }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/December 3, 2020 at 2:13 am #1565269Amol Chavan
Thanks, it looks good and perfect on a single blog post. On the Blog archive, I observe that the meta on Blog Archives look looks like this: Amol ChavanOctober 24, 2020. The Author’s name & Date are touching each other. I need some space between them too.
December 3, 2020 at 2:22 am #1565287Amol Chavan
Thanks, it looks good and perfect on a single blog post. On the Blog archive, I observe that the meta on Blog Archives look looks like this: Amol ChavanOctober 24, 2020. The Author’s name & Date are touching each other. I need some space between Author name and Date: Amol ChavanOctober 24, 2020
December 3, 2020 at 5:11 am #1565501David
StaffCustomer SupportTry this CSS:
body:not(.single) .entry-meta > * { margin-right: 10px; }
Increase the 10px to make a large space.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/December 3, 2020 at 8:02 am #1566002Amol Chavan
Thanks, this ticket is resolved
December 3, 2020 at 9:07 am #1566110David
StaffCustomer SupportGlad to hear that
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.