Hey guys, thanks for your input I’ve been looking for a solution to this for a while. However it seems to break the backend of my site.
@ alchymyth – When I put the following code into my twenty eleven Child Theme’s functions.php file, it breaks my site.
After adding the code, the site functions okay from the front end and it does remove the ‘Posted By AuthorName’, BUT when I try to access the back end login area I just see a white screen.
I put the following code into my child theme’s functions.php file:
<?php
if ( ! function_exists( 'twentyeleven_posted_on' ) ) :
function twentyeleven_posted_on() {
printf( __( '<span class="sep">Posted on </span><a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s" pubdate>%4$s</time></a>', 'twentyeleven' ),
esc_url( get_permalink() ),
esc_attr( get_the_time() ),
esc_attr( get_the_date( 'c' ) ),
esc_html( get_the_date() )
);
}
endif;
?>
Am I doing something wrong here? I tried removing the ‘If’ statements but I get the same issue of not being able to access the login area.