OGCard

Social preview images for Ghost and WordPress posts

When a post has no feature image, Ghost and WordPress fall back to a site-wide image or none at all, so every link you share looks the same. You can give each post its own card with your title, logo and colors, without opening a design tool.

Option 1: no code (Ghost or WordPress)

  1. Open the OGCard builder, type the post title and a short subtitle, add your logo URL and brand colors.
  2. Click Copy next to Image URL, open it in a new tab and save the PNG (1200×630).
  3. Upload it as the post's social image:
    • Ghost: post settings → Facebook card and X card → upload the image.
    • WordPress with Yoast SEO: edit the post → Yoast panel → Social → Social image.
    • WordPress with Rank Math: Rank Math panel → Social → Facebook / X image.

This takes about a minute per post and works on hosted Ghost(Pro) and WordPress.com plans that allow SEO plugins.

Option 2: automatic in a Ghost theme

If you edit your theme, generate the card for posts without a feature image. In default.hbs, put this above {{ghost_head}}:

{{#is "post"}}{{#post}}{{#unless feature_image}}
<meta property="og:image" content="https://rtekfsmupinxncwigmnf.supabase.co/functions/v1/og?title={{encode title}}&amp;subtitle={{encode custom_excerpt}}&amp;brand={{encode @site.title}}&amp;theme=ocean">
<meta name="twitter:image" content="https://rtekfsmupinxncwigmnf.supabase.co/functions/v1/og?title={{encode title}}&amp;brand={{encode @site.title}}&amp;theme=ocean">
{{/unless}}{{/post}}{{/is}}

If your site has a default social image set in Ghost settings, ghost_head will print a second og:image. Most platforms read the first one, but check a post in the checker after deploying.

Option 3: automatic in WordPress

With Yoast SEO, add a fallback in your child theme's functions.php (or a code snippets plugin). It only applies when the post has no social or featured image:

add_filter( 'wpseo_opengraph_image', function ( $image ) {
    if ( $image || ! is_singular( 'post' ) ) {
        return $image;
    }
    return add_query_arg( array(
        'title' => rawurlencode( get_the_title() ),
        'brand' => rawurlencode( get_bloginfo( 'name' ) ),
        'theme' => 'ocean',
    ), 'https://rtekfsmupinxncwigmnf.supabase.co/functions/v1/og' );
} );

Without an SEO plugin, print the tag yourself on wp_head in the same way. Add logo, bg, fg and accent parameters to match your brand; the builder shows the exact names.

Check the result

Paste a post URL into the Open Graph checker to see the Facebook, X, LinkedIn and Slack previews. Platforms cache cards, so a link shared before the change may keep its old preview for a while.

Free with a small "made with OGCard" mark. Pro removes the mark so every card carries only your brand.

Open the builder · Hugo and Jekyll guide · Open Graph tag checklist