[Support request] Author link spacing

Home Forums Support Author link spacing

  • This topic has 3 replies, 2 voices, and was last updated 1 year ago by David.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1017571
    Paul

    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

    #1017765
    David
    Staff
    Customer Support

    Hi there,

    try adding a space after %s ie.

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

    #1017768
    Paul

    Perfect. Thanks.

    #1017769
    David
    Staff
    Customer Support
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.