Alvalyn Lundgren
asked 9 years ago

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;

1 Answers
answered 9 years ago

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 !

replied 9 years ago

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:

dominic Staff
replied 9 years ago

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 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">&rarr;</span>', 'dw-starter' ), esc_html( get_the_author() ) ); ?>

Hope this helps !

replied 9 years ago

That worked. Thank you, Dominic. I appreciate your help.

Powered by DW Question & Answer Pro