Skip to content

Author Bio Box with Photo

Bootstrap 5 author bio box for blog posts with a framed portrait photo, short bio, stats, social links and a follow button.

Also known as: author box, blog author bio, about the author section, post author card, writer profile box

Bootstrap 5 Profile Cards Responsive #author #blog #card #profile #social

Author Bio Box with Photo live demo

Open in new tab

Bootstrap 5 code (HTML, CSS, JS)

A Bootstrap 5 author bio box with a portrait photo, short biography, writing stats, social links and a follow button. Place it at the end of blog posts, articles or tutorials to introduce the writer and point readers to more of their work.

How it works

The box is an aside.ab-box labelled by the author's name. On mobile it is a single column; from 768px a CSS grid puts the photo column (--ab-photo-width) next to the text. The portrait img.ab-photo keeps an 11:13 ratio with object-fit: cover. Behind it, the ::before pseudo-element of .ab-photo-wrap draws an offset frame of diagonal stripes, and a round .ab-badge with a pen icon overlaps the corner. A thick orange left border gives the card its editorial look.

The text column contains the "Written by" eyebrow, the serif .ab-name, the .ab-role line, the .ab-bio paragraph and an .ab-stats list between dashed rules. The .ab-actions row holds four .ab-social-link icons and the .ab-cta group with an "All articles" link and the .ab-follow button.

The script runs on DOMContentLoaded for every .ab-box. Clicking .ab-follow toggles aria-pressed, switches the label between "Follow" and "Following", swaps the plus icon for a check and adds one to the count read from data-ab-followers, shown in .ab-follower-count. The portrait is an Unsplash photo; replace it with the real author's image.

Customization

  • --ab-accent and --ab-accent-soft on .ab-box in style.css: change the orange used by the left border, stripes, badge, eyebrow and social buttons.
  • --ab-paper and --ab-ink on .ab-box: set the card background and the main text and button color.
  • --ab-photo-width on .ab-box: makes the portrait column wider or narrower.
  • data-ab-followers on .ab-box: the starting follower count used by the follow button.
  • aspect-ratio: 11 / 13 in .ab-photo: use 1 / 1 for a square portrait.
  • Remove the ::before rule of .ab-photo-wrap to drop the striped offset frame.
  • The comment in the .ab-follow click handler in script.js: add your fetch() call there to save the follow state.

Use cases

  • Blog posts: a framed portrait and short bio introduce the writer at the end of an article
  • Magazines and news sites: stats and social links show an author's reach
  • Personal blogs: a follow button invites readers to keep up with new posts
  • Guest post pages: credit every contributor with the same consistent bio card, photo and social links

Accessibility

The box uses aside with aria-labelledby pointing to the author's name. The portrait has a meaningful alt, and decorative icons are aria-hidden. Every icon-only social link has a descriptive aria-label. The follow button reports its state with aria-pressed, and a role="status" region .ab-live announces "You are now following Clara Whitfield." Links and buttons show a clear accent-colored focus outline, and the hover lift on social links is disabled for prefers-reduced-motion.

Usage notes

Requires Bootstrap 5 (added automatically) and Bootstrap Icons. Each .ab-box works independently, so several authors can appear on one page.

Author Bio Box with Photo at a glance

Framework
Bootstrap 5
Code
HTML, CSS, JavaScript
JavaScript
Vanilla JavaScript, no jQuery
Dependencies
Bootstrap 5, Bootstrap Icons
Layout
Responsive, works on mobile
Category
Profile Cards
License
Free for personal and commercial use

Questions about this template

Can I use the Author Bio Box with Photo code for free?

Yes. You can copy or download the code and use it in personal and commercial projects, including client work. No sign-up is needed. Reselling it as part of a component library or template collection is not allowed; see the license.

How do I add it to my website?

Load Bootstrap 5 and Bootstrap Icons from a CDN (the links are under Requirements). Paste the HTML where the component should appear, add the CSS to your stylesheet and load the JavaScript before the closing </body> tag. Download HTML gives you a complete page with everything already linked.

Does it need jQuery or a JavaScript framework?

No. The script is plain vanilla JavaScript, so it works without jQuery, React or Vue. You can still use the markup inside those frameworks.

Does it work on mobile?

Yes. The layout adapts to small screens. Use the Mobile and Tablet buttons above the live demo to check it at phone and tablet width.

Requirements

Add these to your page (already included in the download):

  • <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css">
  • <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
  • <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
Author Bio Box with Photo – free Bootstrap 5 profile card template
Author Bio Box with Photo · free Bootstrap 5 profile card template

More Profile Cards

Neon Glow Profile Card – free Pure CSS profile card template

Neon Glow Profile Card

Dark profile card with an animated neon conic-gradient border, soft glow, stats, skill tags and a Follow toggle, built with pure CSS and vanilla JS.

Business Card Style Contact Card – free Bootstrap 5 profile card template

Business Card Style Contact Card

Bootstrap 5 digital business card with portrait, role, tap-to-call contact links, copy buttons, a QR code and a downloadable vCard.

Profile Card with Animated Photo Border – free Pure CSS profile card template

Profile Card with Animated Photo Border

Dark pure CSS profile card whose round portrait sits in a spinning conic-gradient ring with a soft glow, plus stats and a follow toggle.

Profile Card with Stats – free Bootstrap 5 profile card template

Profile Card with Stats

Bootstrap 5 user profile card with gradient cover, initials avatar, animated stat counters, follow toggle, message and copy-link buttons.

Profile Card with Cover – free Tailwind CSS profile card template

Profile Card with Cover

Tailwind CSS profile card with a gradient cover, overlapping avatar, verified badge, bio, skill chips, stats and an accessible follow toggle.