How to remove:"Posted on Date by Admin — No Comments ↓"
-
I have responsive them, and I want to remove “”Posted on Date by Admin — No Comments ↓” that appears at the top of each page/post so my site looks like a website rather than a blog. “I’ve checked the forums and found answers but they don’t work for me. I checked includes/functions.php under Theme Functions and found the code I think is responsible:
/**
* This function prints post meta data.
*
* Ulrich Pogson Contribution
*
*/
if (!function_exists(‘responsive_post_meta_data’)) :function responsive_post_meta_data() {
printf( __( ‘<span class=”%1$s”>Posted on </span>%2$s<span class=”%3$s”> by </span>%4$s’, ‘responsive’ ),
‘meta-prep meta-prep-author posted’,
sprintf( ‘<span class=”timestamp updated”>%3$s</span>‘,
esc_url( get_permalink() ),
esc_attr( get_the_time() ),
esc_html( get_the_date() )
),
‘byline’,
sprintf( ‘<span class=”author vcard”>%3$s</span>’,
get_author_posts_url( get_the_author_meta( ‘ID’ ) ),
sprintf( esc_attr__( ‘View all posts by %s’, ‘responsive’ ), get_the_author() ),
esc_attr( get_the_author() )
)
);
}
endif;The answers I found say remove this bit of code, or comment it out. But when I do this, my entire post along with the “posted on…” section I want to remove disappears. What do I remove/alter here so that only the “Posted on Date by Admin — No Comments ↓” is removed?
- The topic ‘How to remove:"Posted on Date by Admin — No Comments ↓"’ is closed to new replies.