muscleteen
Power Member
- Oct 28, 2008
- 679
- 1,074
Okay, so I'm using the Twenty Thirteen theme. Under each post title, there is the author name that links to the author page (which links to all the posts of the author). But since the website has only 1 author, the author page is basically a replica of the home page (Yep, duplicate content issues).
I would like to keep the author name there, but remove the link to the author page. I don't know PHP at all, but I'm pretty sure it has to do with the functions.php file, more specifically, this part (the last lines):
Can anyone help? (And yes, I have already created a child theme)
I would like to keep the author name there, but remove the link to the author page. I don't know PHP at all, but I'm pretty sure it has to do with the functions.php file, more specifically, this part (the last lines):
Code:
function twentythirteen_entry_meta() {
if ( is_sticky() && is_home() && ! is_paged() )
echo '<span class="featured-post">' . __( 'Sticky', 'twentythirteen' ) . '</span>';
if ( ! has_post_format( 'link' ) && 'post' == get_post_type() )
twentythirteen_entry_date();
// Translators: used between list items, there is a space after the comma.
$categories_list = get_the_category_list( __( ', ', 'twentythirteen' ) );
if ( $categories_list ) {
echo '<span class="categories-links">' . $categories_list . '</span>';
}
// Translators: used between list items, there is a space after the comma.
$tag_list = get_the_tag_list( '', __( ', ', 'twentythirteen' ) );
if ( $tag_list ) {
echo '<span class="tags-links">' . $tag_list . '</span>';
}
// Post author
if ( 'post' == get_post_type() ) {
printf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s" rel="author">%3$s</a></span>',
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
esc_attr( sprintf( __( 'View all posts by %s', 'twentythirteen' ), get_the_author() ) ),
get_the_author()
);
}
}
Can anyone help? (And yes, I have already created a child theme)