Archived topic
Show Author Name Before Dates
3 replies · Started by Gabe on July 21, 2021
I am wanting to change the order of post meta so Author is on the first line below title, then the date published, then the date updated. As it is currently, author is showing up last. I found lots of meta examples, but nothing that would solve this one. I have a feeling I'm missing something really simple.
Current order:
Published date
Updated date
Author name(s)
How I want it:
Author name(s)
Published date
Updated date
Hi Gabe,
Modify this CSS you've added:
@media (min-width: 769px) {
.entry-meta {
display: left;
}
.posted-on {
display: flex;
flex-direction: column;
}
.entry-date.published {
order: -2;
}
}
to this:
@media (min-width: 769px) {
.entry-meta {
display: flex;
flex-direction: column-reverse;
}
.posted-on {
display: flex;
flex-direction: column;
}
.entry-date.published {
order: -2;
}
}
Keep in mind that this will only work on desktop as you've wrapped in the desktop only media query @media (min-width: 769px) {
More info here: https://docs.generatepress.com/article/responsive-display/
Let me know if this helps :)
That did the trick. Thank you so much!
No problem :)