How to put author name under the title?
Hi !
You can copy code following paste in file content-single.php / line 13
URL : http://imgur.com/J4Eo45B
<div class="author-info">
<div class="author-avatar">
</div><!-- .author-avatar -->
<div>
<h2><a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author"><span>by <?php the_author_posts_link(); ?> </span>
</a></h2>
</div><!-- .author-description -->
</div><!-- .author-info -->
<?php endif; ?>
Next : login dashboard > theme option > add code following :
<style>
.author-description {
margin-top: -16px;
}
.author-description h2 span {
font-size: 16px;
font-weight: bold;
}
.author-description h2 a {
font-size: 20px;
}
</style>
Regards,
Dominic
thank you, but somehow the styling does not work, i pasted it into theme options. i want the title font to be a little bit smaller.
Hi !
please, you can submit your site. and username & password /login dashboard. ([email protected])
Regards,
Dominic
hello, i submit already to your Email
Regards and thanks!
Mario
Hi !
What are you doing with code in file content-single.php.
Regards
Hi Dominic, i removed the link from Author name to author post page. but even before that the styles were not applied
ok, now it is applied. but i want to remove that link from the Author name.
Hi !
🙂 you can stop fix in the file, if you fix in the file, style our will not work. i can help you add styling.
Hi 🙂 Author name is now perfectly styled, thank you! but i need to remove the link from by and Author name.
Hi !
You can remove code
<a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author"> </a>
Hi, now it is good, thank you! but i had to adjust a little:
<a href="<?php echo esc_url( get_author( get_the_author_meta( 'ID' ) ) ); ?>" rel="author"> </a>
Hi !
🙂 thank you for choosing our products
Regards
Thank you for your support!
Hi !
I’m very happy to help you.
Regards,
Dominic
Please login or Register to submit your answer