Skip to content

Celebrating our new site: 30% off everything with code , until Dec 1.

Bright Themes

Guest bio box for Ghost

A short box for the end of a guest post, with the guest's photo, name, role, a few lines about them and their links.

  • Works with any Ghost theme

New to Ghost snippets?

Build a card once, save it as a snippet, and add it to any post from the card menu. The tutorial shows each step.

Demo

Narrow the window: the photo sits beside the text while there's room and moves above it on phones.

When to use it

  • A one-off guest post from someone who won't write for you again and needs no account.
  • An interview or Q&A, to introduce the person you talked to once readers have met them.
  • A cross-post from another newsletter, crediting the original writer and linking back to their publication.

When not to: For a regular contributor, add them as a Contributor in Settings › Staff, so the theme shows their name and author page.

The code

<aside class="bt-guest-bio" aria-label="About the guest author">
  <span class="bt-guest-bio-photo" aria-hidden="true">MR</span>
  <div class="bt-guest-bio-body">
    <h2 class="bt-guest-bio-name"><span class="bt-guest-bio-label">Guest author</span> Maya Ross</h2>
    <p class="bt-guest-bio-role">Editor of a weekly newsletter on small-town food</p>
    <p class="bt-guest-bio-text">Maya moved her newsletter to Ghost in 2024 and now publishes every Thursday to a few thousand readers, a third of them paying members. She writes about what running a publication on her own has taught her.</p>
    <p class="bt-guest-bio-links"><a href="https://example.com">Website</a> <a href="https://example.com/newsletter">Newsletter</a></p>
  </div>
</aside>

Add it to your site

  1. Copy the CSS and paste it in Settings › Advanced › Code injection › Site headerSettings › Advanced › Code injection › Site header (opens your Ghost Admin in a new tab), between <style> and </style>. Once per site.
  2. In a post, add an HTML card (type /html) and paste the HTML.
  3. Change the example text to your own, then publish or update the post.

Tip

Save the card as a Ghost snippet to add it to any post from the card menu: how Ghost snippets work.

How it works

The box is an <aside> named “About the guest author”, so screen readers announce it as a separate part of the page, and its heading reads “Guest author Maya Ross”. It goes at the end of the post, after the last paragraph. The name, the role, the text and the links all use your theme’s font and text color; only a light tint, the circle and the link underlines use the accent color, so the box works on light and dark themes.

The example shows the guest’s initials in a circle, which needs no image. To use a real photo, upload it to an Image card in any draft, copy its address, and replace the <span class="bt-guest-bio-photo" …>MR</span> line with <img class="bt-guest-bio-photo" src="https://your-site.com/content/images/photo.jpg" alt="" width="96" height="96">. The alt stays empty because the name is right next to the photo. Change the links to the guest’s own pages, or remove the line if there are none.

Ghost can also credit a guest as the post’s author: add them as a Contributor in Settings › Staff and choose them in the post settings, and the theme shows their name and profile. Use this box when the guest shouldn’t have an account on your site, or when you want the bio inside the post. Save one copy as a Ghost snippet and change the details for each guest: see how to use Ghost snippets. The CSS from code injection doesn’t reach emails, so in a newsletter the box shows as plain text.

Customize

VariableDefaultWhat it changes
--bt-guest-bio-accentvar(--ghost-accent-color, #4433ff)The color of the background tint, the initials circle and the link underlines. Defaults to your site's accent color.
--bt-guest-bio-tint5%How much of the accent color tints the background. 0% for no background.
--bt-guest-bio-photo-size4.5emThe width and height of the photo or initials circle.
--bt-guest-bio-radius8pxThe corner radius of the box.
Works with every Ghost theme, including ours. Something not right? Ask us.

All snippets

Launch a better Ghost site

From a solo newsletter to a busy newsroom, there is a theme that fits. No code needed.