Fixing the Able theme.

This blog has one user. Me. No-one else, just me. So why the hell this theme (along with so many others) insists on displaying my name on every post is something I just do not understand. I had removed it in the last version and for some reason last night I clicked to update it. Stupid move.

I should not have to create a child theme to fix an obvious flaw. I refuse to ever create a child theme.

To fix the Able theme, open /themes/able/inc/template-tags.php and look for this:

function able_posted_on() {
    printf( __( 'Posted on ', 'able' ),
        esc_url( get_permalink() ),
        esc_attr( get_the_time() ),
        esc_attr( get_the_date( 'c' ) ),
        esc_html( get_the_date() ),
        esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
        esc_attr( sprintf( __( 'View all posts by %s', 'able' ), get_the_author() ) ),
        esc_html( get_the_author() )
    );
}
endif;

Change that to this:

function able_posted_on() {
    printf( __( 'Posted on ', 'able' ),
        esc_url( get_permalink() ),
        esc_attr( get_the_time() ),
        esc_attr( get_the_date( 'c' ) ),
        esc_html( get_the_date() )
    );
}
endif;

and now your theme is fixed.

One day theme creators might cotton on to the fact that in a single user blog there is absolutely no need at all to show the owner’s name.

Leave a Reply

Your email address will not be published. Required fields are marked *