How To Add Author Box In GeneratePress Premium Theme Without Plugin

4.8/5 - (17 votes)

This post is all about how to add an author box in the generatepress theme.

Let’s say you have just installed generatepress premium theme on your WordPress website, and you want to add an author box after every post.

Then this article is going to help you a lot because I have shared how to create author Box after post in generatepress premium theme without a plugin.

Example of Author Box

Example of Author Box

Php Code

<div class="webinsights-author-box">
    <div class="insights-avatar">
        <?php echo get_avatar( get_the_author_meta( 'ID' ), 250 ); ?>
    <div class="insights-author-info">
        <div class="author-title" itemprop="author" itemscope itemtype="">
            <span itemprop="name"><?php printf( get_the_author_meta( 'display_name') );?></span>
        <div class="author-summary">
            <p class="author-description"><?php echo wp_kses( get_the_author_meta( 'description' ), null ); ?></p></div>
<div class="author-links">
            <a href="" title="Read more about this author">...</a>

CSS Codes

/* Webinsights author box*/

.webinsights-author-box {
	padding: 3%;
	padding-bottom: 10px;
	margin-top: 30px;
	font-size: 0.9em;
	background-color: #fff;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
    box-shadow: rgb(23 43 99 / 30%) 0 2px 10px;
    border-radius: 25px;

.webinsights-author-box .insights-avatar {
	width: 250px;
	height: auto;
	border-radius: 100%;
	margin-right: 30px;
.author-title {
	margin-bottom: 0.1em;
	font-weight: 600;
.author-description {
	line-height: 1.6em;
.author-links a {
	margin-top: -1.5em;
	font-size: 2em;
	line-height: 2em;
	float: left;
@media (max-width: 768px) {
	.webinsights-author-box {
		padding: 20px;
		padding-bottom: 25px;
		margin-top: 60px;
		flex-direction: column;
		text-align: center;
	.webinsights-author-box .insights-avatar {
		margin-right: 0;
		width: 100%;
		margin-top: -60px; 
	.webinsights-author-box .insights-avatar img {
		max-width: 100px; 
	.author-links a {
		float: none;
		align-self: center;
	.author-description {
		margin-bottom: -0.1em;
/*end of webinsights author box*/

Wrapping Up

This is all about how to create or add an author box in the generatePress Theme in wordpress.

Let me know if you have any questions about the same.

Sharing Is Caring...

An aspiring MCA student formed an obsession with Blogging, SEO, Digital Marketing, and Helping Beginners To Build Amazing WordPress Websites.

8 thoughts on “How To Add Author Box In GeneratePress Premium Theme Without Plugin”

  1. Hi Good job,
    But my author box with your PHP and CSS not showing at all same issue with your social share icons for entire posts sticky is working file but these two are same result hope you will not mind to answer thanks.


Leave a Comment