How To Add Author Bio Box in GeneratePress Theme

Steps to add author bio box in generatepress

  1. Click on Appearance- Elements – Add New
  2. Choose element as Hook
  3. Create a Hook
  4. Set display rules to the Hook
  5. Tick on Execute PHP
  6. Paste the below given code

Code for Author Bio Box in GeneratePress

<div class="author-box">
    <div class="avatar">
        <?php echo get_avatar( get_the_author_meta( 'ID' ) ); ?>
    <div class="author-info">
		<h5 class="author-title" itemprop="author" itemscope itemtype="">
			by <?php the_author_link(); ?>
			 <div class="author-summary">
					 <p class="author-description"><?php echo wp_kses( get_the_author_meta( 'description' ), null ); ?></p></div>
					<div class="author-links">
		<link rel="stylesheet" href="" integrity="sha256-eZrrJcwDc/3uDhsdt61sL2oOBY362qM3lon1gyExkL0=" crossorigin="anonymous" />
				*{ margin: 0; padding: 0;}
							color: #1DA1F2
							color: #E1306C;
									color: #228C22
			justify-content: center;
					align-items: center;
		<div class="centerdiv">
			<a href="">
			<i class="fa fa-2x fa-facebook-square" aria-hidden="true"></i> </a>
			<a href="">
				<i class="fa fa-2x fa-instagram" aria-hidden="true"></i>
				<a href="">
					<i class="fa fa-2x fa-twitter-square" aria-hidden="true"></i>
					<a href="">
						<i class="fa fa-2x fa-whatsapp" aria-hidden="true"></i>
						<a href="">
							 <i class="fa fa-2x fa-telegram" aria-hidden="true"></i>

Add CSS Style

Now you have successfully added author bio box in GeneratePress theme. To give a better look to your bio box you have to add CSS code to your website.

There are various methods to add CSS style to your WordPress website. You can add CSS codes into the additional CSS area in the GeneratePress customization. Follow these steps to add CSS in WordPress website.

  1. Appearance
  2. Customization
  3. Additional CSS
  4. Add this below-given CSS code

CSS Code for GeneratePress Author Bio box

.instagram-logo {
  path {
    fill: #000;
  circle: #fff;
  .logo {
		fill: #333;}
	.author-box {
	padding: 3%;
	padding-bottom: 10px;
	margin-top: 60px;
	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;
	border: 2px solid #a7a8a7;
	border-radius: 25px 0px 25px 0px;
.author-box .avatar {
	width: 400px;
	height: auto;
	border-radius: 100%; 
	margin-right: 30px;
} {
	margin-bottom: 0.1em;
	font-weight: 600;
	font-size: 20px;
.author-description {
	line-height: 1.6em
.author-links a {
	font-size: 15px;
	line-height: 20px;
	float: left;
@media (max-width: 768px) {
	.author-box {
		padding: 20px;
		padding-bottom: 0px;
		margin-top: 100px;
		flex-direction: column;
		text-align: center;
	.author-box .avatar {
		margin-right: 0;
		margin-bottom: 10px;
		width: 100%;
		margin-top: -35px;
	.author-box .avatar img {
		max-width: 100px;
	.author-links a {
		float: none;
		align-self: center;
	.author-description {
	text-align: left;

A2 Hosting Review (2020) & Expert Opinion

Thanks for reading this article I hope this helped you to add author bio box in Generatepress theme, Please do share this on your social media.

Hey, I am Keshab Chandra Behera a YouTuber, Blogger and Affiliate marketer

Leave a Comment