Tom Nowell
asked 10 years ago

When viewing author archives, the author name is shown. However, this would be a good place to put in the author bio, and perhaps a link to their site etc as defined in the user edit pane.

It’s also not clear if the add new post pane shown in the author archive is going to publish a post under the shown author or if it’s not supposed to be there

1 Answers
Wilfred
answered 10 years ago

Hi Tom,
Thanks for your feedback, we will add the author bio in the next version of the DW Timeline Pro theme.
To add the author bio, please follow our instruction below:
1. Open header.php file in /wp-content/themes/dw-timeline-pro/templates/header.php
2. Add following code to line 136 (see screenshort below):

   <?php if ( is_author() ): ?>
<h2 class="author-desc">
<?php
$author = get_queried_object();
the_author_meta( 'description',$author->ID );
?>
</h2>
<?php endif ?>

3. Add the following code to header code in Dashboard / Appearance / Customize / Custom code / header code 

   <style>
.banner .author-desc {
font-size: 20px;
line-height: 1.3;
margin-top: 0;
font-weight: 400;
}
@media (max-width: 767px) {
.banner .author-desc {
display: none;
}
}
</style>

Hope this helps!
 

Powered by DW Question & Answer Pro