Site logo

Archived topic

Post title in same line as post date

14 replies · Started by Paul on October 14, 2021

Viewing posts 1–15 of 15

Hi there! I have been using GeneratePress premium for a few years and would never using anything else!!
I am wondering if it is possible to put the post title next to / same line as the post date:

Title. Date.

Post Body.

Thank you for the help!!
Paul

Sure! Here is my site -
givepraiserecords.com

And here is what I’m trying to achieve, I don’t need a fancy date set up, just in the same line -
dlxsf.com

Give this CSS a try:

ul.wp-block-latest-posts__list.has-dates.wp-block-latest-posts > li > a, ul.wp-block-latest-posts__list.has-dates.wp-block-latest-posts > li > time {
    display: inline-block;
}
ul.wp-block-latest-posts__list.has-dates.wp-block-latest-posts > li > time {
    padding-left: 0.5em;
}

Adding CSS: https://docs.generatepress.com/article/adding-css/

Let me know :)

I added it but it doesn’t look like anything changed?
Any other ideas?
Thank you so much!! The service here is just as great as the theme itself!

Thank you!

Ah no worries, try this instead:

.blog header.entry-header >*, .archive header.entry-header >* {
    display: inline-block;
}

Let me know :)

Perfect!!!!! Is there anyway to force the entry title into a left column, because on mobile of the title is too long, the date goes underneath the title,

Thank you so much!!!

Do you want something like this?
https://www.screencast.com/t/01MUnUzE

If so, try this CSS:

@media (max-width: 768px) {
    .blog header.entry-header, .archive header.entry-header {
        display: flex;
    }
}

Perfect!!! Perfect!!! Thank you so so much!! Have a great rest of the day, thank you!!!!

Paul

Yes!

Try this:

.blog header.entry-header, .archive header.entry-header {
    justify-content: space-between;
}

You are amazing!!!!! Thank you so so much!!!

Glad to be helpful :)

This archived topic is closed to new replies.