Archived topic
Getting Read Time To be On same line
5 replies · Started by Sam on August 30, 2018
Hi team, I have tried out the method at
https://generatepress.com/forums/topic/creating-an-estimated-reading-time/page/2/
To create reading time, and it worked.
But now, I cannot seem to get it on the same line as the author.
I want it to be on the same line, so on Category Archive page, it should be by [author name] | [time to read]
https://drive.google.com/file/d/1BejMvzm8vKGga2ZVDW5yhMTGhBYfWYC_/view?usp=sharing
On the Blog Post page, I want it to be by [author name] | [date of post] | [time to read]
https://drive.google.com/file/d/19zjN9b-N8Lh5Z6A1tcioP5WNgOxT1rtq/view?usp=sharing
1. I would like them to be all on the same line, and also to have the "|" divider in between.
Please advise how to go about doing it?
Thank you!
Hi there,
Any chance you can link us to the site in question?
You can edit the original topic and use the private URL field.
Let me know :)
Hi Leo, updated this thread with the URL. please assist, thanks!
Try this CSS:
.read-time {
display: inline-block;
}
Thanks Leo, that worked. how do i get the line in front of the time, please?
https://drive.google.com/file/d/1wVJ_2IU-ZNbv1GwrgrGh3x6oJv0TbaUH/view?usp=sharing
Replace this CSS:
.single .comments-link, .single .posted-on {
border-left: 1px solid #ddd;
padding-left: 10px;
margin-left: 10px;
}
With this:
.single .comments-link, .single .posted-on, .read-time {
border-left: 1px solid #ddd;
padding-left: 10px;
margin-left: 10px;
}