Archived topic
Increase space between "by" in the "last updated" section.
5 replies · Started by Jason on February 18, 2021
Hello,
I'm using a code snippet to display the "last updated" date instead of the "posted on" date. I have the author name listed next to it, but there's no space between the date and the "by author name" section. I'm sure there's just a space I'm missing in the code. Can someone assist?
Here is the code snippet I'm using:
add_filter( 'generate_post_date_output', function( $output, $time_string ) {
printf( '<span class="posted-on">%s</span>',
$time_string
);
}, 10, 2 );
And here is the CSS I'm using:
}
.posted-on .updated {
display: inline-block;
}
.posted-on .updated:before {
content: "Last Updated: ";
}
time.entry-date.published {
display: none;
}
Hi there,
Any chance you can link us to the site in question?
You can use the private information field.
Let me know :)
Just provided, thanks.
Try this:
.entry-meta .byline {
padding-left: 5px;
}
That worked, thank you!
No problem :)