Site logo

Archived topic

Author link spacing

3 replies · Started by Paul on September 24, 2019

Viewing posts 1–4 of 4

Hi,

I have removed the internal link from the post date successfully using this

 add_filter( 'generate_post_date_output','tu_remove_date_link', 10, 2 );
function tu_remove_date_link( $output, $time_string ) {
	printf( '<span class="posted-on">%s</span>',
		$time_string
	);
}

However now the by author byline does not have a space between itself and the date.

EG it is currently - Last Updated: September 24, 2019by Joe Bloggs
It should be - Last Updated: September 24, 2019 by Joe Bloggs

I have added a URL from the site to demonstarte

Hi there,

try adding a space after %s ie.

'<span class="posted-on">%s </span>'

Perfect. Thanks.

You're welcome

This archived topic is closed to new replies.