Viewing 6 replies - 1 through 6 (of 6 total)
  • Barry

    (@barryhughes-1)

    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&nbsp;', '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!

    Thread Starter eliechaaya

    (@eliechaaya)

    Thank you Barry!

    It worked 🙂

    Theme Author inkthemescom

    (@inkthemescom)

    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/

    ontimepass2

    (@ontimepass2)

    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.

    ontimepass2

    (@ontimepass2)

    .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?

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘How to remove author name on posts?’ is closed to new replies.