unlink the author name & date

Hi All

I would like to know how to unlink the author name & date in Travelify

Regards

Barrt

Hi Barrt,

I hope you are well today and thank you for your question.

You can unlink the author name & date in Travelify theme by adding the following code in the functions.php file of your child theme.

/**
 * Prints HTML with meta information for the current post-date/time and author.
 */
function travelify_posted_on() {
	$time_string = '<time class="entry-date published updated" datetime="%1$s">%2$s</time>';
	if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {
		$time_string = '<time class="entry-date published" datetime="%1$s">%2$s</time><time class="updated" datetime="%3$s">%4$s</time>';
	}
	$time_string = sprintf( $time_string,
		esc_attr( get_the_date( 'c' ) ),
		esc_html( get_the_date() ),
		esc_attr( get_the_modified_date( 'c' ) ),
		esc_html( get_the_modified_date() )
	);
	$byline = sprintf(
		'<span class="author vcard">'. esc_html( get_the_author() ) . '</span>'
	);
	echo '<span class="byline"> ' . $byline . '</span><span class="posted-on">' . $time_string . '</span>';
}

If you don’t have child theme then you can use the child theme attached to this reply which contans the above code solution.

Best Regards,
Movin