Archived topic
new line after updated in meta
7 replies · Started by Anil on February 7, 2022
Please suggest way to insert new line updated and posted dates
following not working
/* entry meta below title */
div.entry-meta {font-size: 70%}
.posted-on .updated {display: inline-block}
.posted-on .updated:before {content: "Updated: "}
.posted-on .updated:after {content: "\a"; white-space: pre;}
.posted-on .published:before {content: " Posted: "}
.posted-on .updated + .entry-date {}
/* --- */
Regards.
Hi there,
try this CSS:
.single .entry-header .entry-meta {
display: flex;
}
.single .entry-header .posted-on {
display: flex;
flex-direction: column;
}
.single .entry-header .byline {
margin-left: 10px;
}
Or this CSS if you want the author byline on the second line:
.single .entry-header .entry-meta {
display: flex;
align-items: flex-end;
}
.single .entry-header .posted-on {
display: flex;
flex-direction: column;
}
.single .entry-header .byline {
margin-left: 10px;
}
Thanks David, it is working but can you please help to improve this on mentioned url
Thanks, I did it with change in date format.
Warm regards.
Whats the issue ?
Theres not much i can do about the spacing between the date and the byline as they are not in the same container.
Glad to be of help
about the spacing between the date and the byline
I feel, hide all in customiser, and hook a new function after title with proper format as I need will help.
Regards
For customizing the meta we recommend using a Block Element:
https://docs.generatepress.com/article/block-element-post-meta-template/