WordPress.org

Ready to get started?Download WordPress

Forums

Minimize
[resolved] How to remove "view more posts from this author" box from posts (4 posts)

  1. Jason H
    Member
    Posted 3 months ago #

    Where can I remove (or hide) the the block that appears just under each post showing my name, picture, and a link with the text "View more posts from this author"?

    Thanks!
    Jason

  2. sdavis2702
    Member
    Posted 3 months ago #

    Create and activate a child theme and copy the loop.php file to the root of your child theme. Now in that file, find the following HTML and remove it (or comment it out).

    <section id="post-author">
    	<figure class="author-avatar">
    		<?php echo get_avatar( get_the_author_meta( 'ID' ), 148 ); ?>
    	</figure>
    	<h4><?php echo get_the_author_meta( 'display_name' ); ?></h4>
    	<p><?php echo get_the_author_meta( 'description' ); ?></p>
    	<a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>"><?php _e( 'View more posts from this author', 'minimize' ); ?></a>
    </section>
  3. Jason H
    Member
    Posted 3 months ago #

    Fantastic - worked perfectly. Thanks!

  4. sdavis2702
    Member
    Posted 3 months ago #

    No problem!

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.