Possibly the easiest option is just hiding those links via some custom CSS, like this:
.post_meta .posted_by {
display: none;
}
You could also remove the following line (which can be found in the single.php and content.php templates):
<li class="posted_by"><span class="glyphicon glyphicon-user"></span><span><?php _e( 'by ', 'one-page' ); ?></span><?php the_author_posts_link(); ?></li>
Modifying a theme’s code directly like this is never a great idea, but you could safely copy those templates over to a child theme and make the change there.
Hope that helps!
Thank you, Barry, for your help..
InkThemes.
How to remove author name on posts? i have been struggling to do that for a while now. website; http://www.styledefinition.co/
It’s not working for me. I have tried to hide author name from first post page even single post page. I have tried using that code but is not working.
.post_meta .posted_by {
display: none;
}
I have used this for hiding author name from first post page even single post page.
but it’s not working for me. any other solution?