Is there a way to remove the shaded author bio and avatar box that appears below each post?
I don’t want to set up user profiles and access for every contributing writer, and every post defaults to me as its author.
I tried adding the custom code to the css, but the box is still showing.
This is the code I added:
.single-post .co-author {
display: none;
}
Hi,
To remove the author section below each post, you can add the following code to the style.css file:
.single-post .author-info { display: none; }
Hope this helps !
Thank you. I added the code to both the child style.css and the dw-focus style.css files. The author box is still showing at the bottom of each post: http://mpisccintercom.com/a-philosophy-of-branding/
I have checked on our demo and it works fine. If you still face there issue, you can open the \wp-content\themes\dw-focus\single.php
file, find the line 22 then remove the following code:
<div class="author-info">
<div class="author-avatar">
<?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'dw_starter_author_bio_avatar_size', 72 ) ); ?>
</div>
<div class="author-description">
<h4><?php printf( __( 'About %s', 'dw-starter' ), esc_html( get_the_author() ) ); ?></h4>
<?php the_author_meta( 'description' ); ?>
<a class="author-link" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
<?php printf( __( 'View all posts by %s <span class="meta-nav">→</span>', 'dw-starter' ), esc_html( get_the_author() ) ); ?>
</a>
</div>
</div>
Hope this helps !
That worked. Thank you, Dominic. I appreciate your help.
Please login or Register to submit your answer