Time needed: <\/span>10 minutes<\/p>To create an author box using GenerateBlocks you won’t need more than 10 minutes.
GeneratePress premium version 2.0 or higher and free GenerateBlocks is sufficient.
<\/p>
- Update WordPress Author Profile<\/strong>
Make sure your WordPress author profile is up to date with First Name, Last Name, email address and at least 1 social profile.
The social profiles are handled by every SEO plugin like Yoast, RankMath, etc.
Also, verify that your profile picture is connected to Gravatar.
For verifying all of the above, go to WordPress Dashboard<\/strong>, hover on Users<\/strong> – All Users<\/strong>, and under you user profile, click on Edit<\/strong>.
<\/p> <\/li>- Create GeneratePress Block Elements<\/strong>
From your WordPress Dashboard<\/strong>, hover your mouse on Appearance<\/strong>, and click on Elements<\/strong>. When the GeneratePress Elements page opens up, add a New Element<\/strong> and select Block<\/strong> from the drop down list.
Note:-<\/strong> GeneratePress block elements are super useful in creating author box, related posts, latest posts, etc.
<\/p> <\/li>- Customize The GeneratePress Block Element<\/strong>
Give a name to your Element<\/strong>, adjust the entire element’s width<\/strong>, select Element Type<\/strong> as Hook<\/strong>, select Hook Name<\/strong> as ‘after_content’<\/strong>, and give Priority<\/strong> of 10<\/strong>.
<\/p> <\/li>- Add A GenerateBlocks Container Block<\/strong>
This container block will be the main block wrapping all other blocks that will be used in creating the author box.
I have already made the author box for my website. Therefore, use the image guides for spacing and other components.
<\/p> <\/li>
- Apply A GenrateBlocks Grid Block<\/strong>
Create a Grid Block with 2 containers<\/strong>. The first container will hold Author Avatar<\/strong> (image) and the second container will hold the Post Author Name<\/strong>. Set the first container size to 20% and second container size to 80%.<\/p> <\/li>- Add Dynamic Image To Hold Author Avatar<\/strong>
In the first container of the grid block, click on Add block and select Dynamic Image<\/strong>. Later choose Type<\/strong> as Author Avatar<\/strong>, set image size to 95 pixels<\/strong> and enable rounded image<\/strong>.
<\/p> <\/li>- Add GenerateBlocks Headline Block To Hold Post Author Name<\/strong>
In the next container, click within the container to add a Headline Block, click on Dynamic Options<\/strong> and select Dynamic Text Type<\/strong> as Post Author Name<\/strong>. Further set Dynamic Link Type<\/strong> as Author Archives<\/strong>.
<\/p> <\/li>- Add GeneratePress Dynamic Content Block To Pull Author Description<\/strong>
After you have successfully finished customizing both the containers of the Grid Block, in the meantime add another Container Block.
Note:-<\/strong> This Container Block is added under the main container, after the Grid Block.<\/em>
Add a Container Block<\/strong> and within that container add GeneratePress Dynamic Content Block<\/strong>. From the Type<\/strong> drop down list, select Author Description<\/strong>. This will automatically pull author description from the WordPress Author Profile description field.
<\/p> <\/li>- Finally, Add Button Block For Author Social Icons<\/strong>
Just like the previous step, in the same way add another Container Block<\/strong> to hold GenerateBlocks Buttons block<\/strong>.
Click on the main Button Block and align the entire block to the right-hand-side.
After that, click on the first button and select Dynamic Options<\/strong>. Under Dynamic Link Type<\/strong>, select Author Meta<\/strong> and under Meta Field Name<\/strong> type the field name.
Later, use an appropriate social icon<\/em> from the Icon<\/strong> section.
Note:-<\/strong> The Meta Field Name should match with the social profile field name under WordPress User Profile.
<\/em>
I have a Facebook profile and wanted to link that under my Author Bio.
<\/p> <\/li>- Apply Display Location To Your GeneratePress Author Box Block Element<\/strong>
To conclude, we have completed customizing the author box via GenerateBlocks. But, there is one last thing to do, and that is applying to correct display location to your GeneratePress Element Block.
Since, this is an author box, select location as Posts<\/strong>, followed by All Posts<\/strong>. The hook and all other blocks that we’ve used in creating this author box will automatically pull the author bio under each post.
In the end, click on Publish<\/strong>.
<\/p> <\/li><\/ol><\/div>\n\n\n\n