How to Design a Dynamic Author Box for Your Blog Post Template with Divi

Last Updated on September 18, 2022 by 3 Comments

How to Design a Dynamic Author Box for Your Blog Post Template with Divi
Blog / Divi Resources / How to Design a Dynamic Author Box for Your Blog Post Template with Divi

Mentioning the post author in your blog posts is essential. Now, with Diviโ€™s Theme Builder you can add a site-wide dynamic author box to your posts. You can also style the author box using Divi and its built-in options, this can leads to beautiful web design. In this tutorial, weโ€™ll show you exactly how to design a beautiful dynamic author box inside your post template. Youโ€™ll be able to download the post template JSON file for free as well!

Letโ€™s get to it.

Preview

Before we dive into the tutorial, letโ€™s take a quick look at the outcome across different screen sizes.

Desktop

author box

Mobile

author box

Download The Post Template for FREE

To lay your hands on the free post template, you will first need to download it using the button below. To gain access to the download you will need to subscribe to our newsletter by using the form below. As a new subscriber, you will receive even more Divi goodness and a free Divi Layout pack every Monday! If youโ€™re already on the list, simply enter your email address below and click download. You will not be โ€œresubscribedโ€ or receive extra emails.

1. Go to Divi Theme Builder & Add New Post Template

Go to Divi Theme Builder & Add New Template

Start by going to the Divi Theme Builder. Once there, add a new template.

author box

Use Template on All Posts

Use the new template on all your posts.

  • Use On: All Posts

author box

Start Building Template Body

And start building the template body.

author box

2. Build Blog Post Template Body

Section Settings

Background Color

Inside the template editor, youโ€™ll notice a section. Open the section settings and add a background color.

  • Background Color: #270fff

author box

Background Image

Upload the background image you can find in the zipped folder you were able to download at the beginning of this post.

author box

Add New Row

Column Structure

Continue by adding a new row to the section using the following column structure:

author box

Sizing

Open the rowโ€™s settings and change the max width in the sizing settings.

  • Max Width: 1380px

author box

Add Post Title Module to Column

Elements

The only module we need in this row is a Post Title Module. Weโ€™re disabling the postโ€™s featured image in the elements settings.

  • Show Featured Image: No

author box

Text Settings

Move on to the moduleโ€™s design tab and change the text color in the general text settings.

  • Text Color: Light

author box

Title Text Settings

Modify the title text settings next.

  • Title Font: Work Sans
  • Title Text Size: 7rem (Desktop), 4rem (Tablet), 2rem (Phone)
  • Title Letter Spacing: -2px

author box

Meta Text Settings

Along with the meta text settings.

  • Meta Font: Work Sans
  • Meta Text Size: 1rem

author box

Add New Section

Spacing

Add a new regular section to your template body, open the section settings and remove all default top padding.

  • Top Padding: 0px

author box

Add New Row

Column Structure

Continue by adding a new row to the section using the following column structure:

author box

Sizing

Open the row settings and change the sizing settings as follows:

  • Use Custom Gutter Width: Yes
  • Gutter Width: 1
  • Equalize Column Heights: Yes
  • Max Width: 1380px

author box

Spacing

Remove all default top padding as well.

  • Top Padding: 0px

author box

Column 1 Settings

Spacing

Then, open the column 1 settings and add some custom padding values across different screen sizes.

  • Top Padding: 200px (Desktop), 50px (Tablet), 20px (Phone)
  • Bottom Padding: 200px (Desktop), 50px (Tablet), 20px (Phone)
  • Left Padding: 100px (Desktop), 50px (Tablet), 20px (Phone)
  • Right Padding: 100px (Desktop), 50px (Tablet), 20px (Phone)

author box

Box Shadow

Add a box shadow to the first column as well.

  • Box Shadow Blur Strength: 60px
  • Shadow Color: rgba(0,0,0,0.09)

author box

Add Post Content Module to Column 1

Text Settings

Time to start adding modules! Place the Post Content Module in column 1 and change the text settings accordingly:

  • Text Font: Work Sans
  • Text Size: 1rem (Desktop), 0.9rem (Tablet & Phone)
  • Text Line Height: 2.3em

author box

Heading Text Settings

Modify the different heading text settings as well.

  • Heading Font: Work Sans
  • Heading 2 Text Size: 1.6rem (H2), 1.5rem (H3), 1.4rem (H4), 1.3rem (H5), 1.2rem (H6)
  • Heading Line Height: 1.3em

author box

CSS ID

Complete the moduleโ€™s settings by adding a CSS ID.

  • CSS ID: blog-post-content

author box

Add Code Module to Column 1

Insert Heading CSS Code

To add some space between the different post content elements, weโ€™ll add a Code Module to column 1 and insert the following lines of CSS code:

<style>
#blog-post-content h2, h3, h4, h5, h6 {
margin-top: 50px;
margin-bottom: 50px;
}

#blog-post-content p {
margin-top: 20px;
margin-bottom: 20px;
}
</style>

author box

Add Person Module to Column 2

Dynamic Content

In the second column, the only module we need is a Person Module. Weโ€™ll select the following dynamic content:

  • Name: Post Author
  • Position: Author
  • Body: Author Bio

author box

Image Dynamic Content

Add the authorโ€™s dynamic profile picture to the module too.

  • Image: Author Profile Picture

author box

Hover Background Color

Then, add a white background color on hover.

  • Background Color: #ffffff

author box

Title Text Settings

Move on to the moduleโ€™s design tab and change the H3 text settings accordingly:

  • Title Heading Level: H3
  • Title Font: Work Sans
  • Title Text Size: 1.1rem

author box

Body Text Settings

Modify the body text settings too.

  • Body Font: Work Sans
  • Body Text Size: 0.9rem
  • Body Line Height: 2em

author box

Position Text Settings

Then, change the position font text settings.

  • Position Font: Work Sans
  • Position Text Size: 0.9rem

author box

Default Sizing

Modify the height in the sizing settings.

  • Height: 160px (Desktop), auto (Tablet & Phone)

author box

Hover Sizing

And bring back the height to auto on hover.

  • Height: auto

author box

Spacing

Next, weโ€™re adding some space around the module using custom padding.

  • Top Padding: 50px
  • Bottom Padding: 50px
  • Left Padding: 50px
  • Right Padding: 50px

author box

Default Border

And weโ€™ll use a border too.

  • Left Border Width: 0px (Desktop), 4px (Tablet & Phone)
  • Left Border Color: #270fff

author box

Hover Border

Modify the border width on hover.

  • Left Border Width: 4px

author box

Default Box Shadow

Then, add a box shadow.

  • Box Shadow Blur Strength: 60px
  • Shadow Color: rgba(0,0,0,0) (Desktop), rgba(0,0,0,0.11) (Tablet & Phone)

author box

Hover Box Shadow

Change the shadow color on hover.

  • Shadow Color: rgba(0,0,0,0.11)

author box

Default Filters

Moving on, weโ€™ll change the opacity.

  • Opacity: 41% (Desktop), 100% (Tablet & Phone)

author box

Hover Filters

Bring back the opacity to 100% on hover.

  • Opacity: 100%

author box

Main Element CSS

To add the sticky effect you were able to notice in the preview of this post, weโ€™ll add a few lines of custom CSS to the moduleโ€™s main element.

position: sticky;
position: -webkit-sticky;
top: 50px !important;

author box

Member Image CSS

Weโ€™re making sure the author profile picture is left-aligned by adding one single line of CSS code to the moduleโ€™s member image.

text-align: left;

author box

Default Visibility

To hide the moduleโ€™s content on desktop, weโ€™ll change the overflows in the advanced tab.

  • Horizontal Overflow: Hidden
  • Vertical Overflow: Hidden

author box

Hover Visibility

Weโ€™ll make the content appear on hover by changing the overflows to visible.

  • Horizontal Overflow: Visible
  • Vertical Overflow: Visible

author box

Add New Section

Add another section to your design.

author box

Add New Row

Column Structure

Continue by adding a new row to the section using the following column structure:

author box

Sizing

Open the row settings and change the sizing settings accordingly:

  • Use Custom Gutter Width: Yes
  • Gutter Width: 1
  • Equalize Column Heights: Yes
  • Max Width: 1380px

author box

Add Comments Module to Column

Fields Settings

The only module we need in this row is a Comments Module. Change the fields settings as follows:

  • Fields Background Color: #ffffff
  • Fields Top Padding: 20px
  • Fields Bottom Padding: 20px
  • Fields Font: Work Sans
  • Fields Text Size: 1rem

author box

Comment Count Text Settings

Modify the comment count text settings as well.

  • Comment Count Heading Level: H2
  • Comment Count Font: Work Sans
  • Comment Count Text Size: 1.5rem

author box

Form Title Text Settings

Then, change the form title text settings.

  • Form Title Heading Level: H3
  • Form Title Font: Work Sans
  • Form Title Text Size: 1.2rem

author box

Meta Text Settings

Modify the meta text settings as well.

  • Meta Font: Work Sans
  • Meta Text Size: 1rem

author box

Comment Text Settings

Weโ€™re changing the comment text settings too.

  • Comment Font: Work Sans
  • Comment Text Size: 1rem
  • Comment Line Height: 2.3em

author box

Button Settings

Complete the moduleโ€™s settings by styling the button.

  • Use Custom Styles For Button: Yes
  • Button Text Size: 1rem
  • Button Text Color: #ffffff
  • Button Background Color: #270fff
  • Button Border Width: 0px
  • Button Border Radius: 0px

author box

  • Button Font: Work Sans

author box

3. Save Theme Builder Changes & View Result

Once youโ€™ve completed the template, make sure you save all changes, exit the Theme Builder and view the outcome on your posts!

author box

author box

Preview

Now that weโ€™ve gone through all the steps, letโ€™s take a final look at the outcome across different screen sizes.

Desktop

author box

Mobile

author box

Final Thoughts

In this post, weโ€™ve shown you how to design a beautiful dynamic author box using Diviโ€™s built-in options, the dynamic feature and the Theme Builder. With these three things combined, itโ€™s now easier than ever to customize your blog post template and credit the post author in a creative way. You were able to download the JSON file for free as well! If you have any questions or suggestions, feel free to leave a comment in the comment section below.

If youโ€™re eager to learn more about Divi and get more Divi freebies, make sure youย subscribe to our email newsletterย andย YouTube channelย so youโ€™ll always be one of the first people to know and get benefits from this free content.

Divi Cyber-monday Sale

It's The Divi Cyber Monday Sale! Save Big For A Limited Time ๐Ÿ‘‡

Save big on Divi and Divi products for a limited time.

Access The Sale
Divi Cyber-monday
Premade Layouts

Check Out These Related Posts

Divi 5 Update: Public Alpha Version 4

Divi 5 Update: Public Alpha Version 4

Posted on November 25, 2024 in Divi Resources

The Divi 5 Public Alpha is available for testing. If you use Divi 5, you’ll notice an update notification for Public Alpha Version 4 today. We release new Divi 5 versions every two weeks, and it gets better each time! If you haven’t tested Divi 5 yet, try it and let us know what you...

View Full Post
New Starter Site for Freelancers (Quick Install)

New Starter Site for Freelancers (Quick Install)

Posted on November 24, 2024 in Divi Resources

Divi empowers you to build the best websites possible, and now, Divi Quick Sites takes website creation to a whole new level. This revolutionary tool lets anyone, regardless of skill level, generate a complete website in under two minutes! Divi Quick Sites provides everything you need to launch...

View Full Post

3 Comments

  1. Please tell me how to make Social media URLs dynamic respective to the authors’ profiles.

  2. The dynamic options are limited however. It’s strange that only name, position, picture and bio are available and not, for example, email (which is even required).

  3. Hi There,

    Thanks for these tips!

    So, just to be certain.

    I can use this even if I already have a current theme?

Leave A Reply

Comments are reviewed and must adhere to our comments policy.

๐Ÿ‘‹ It's The Divi
Cyber Monday Sale!
Get The Deal
Before It's Gone!
Join To Download Today