Advanced

Post layouts

Four ways to open a post, chosen per post with one internal tag: the default centred header, an immersive full-width cover, the picture beside the title on the right or the left, plus a drop cap for the first paragraph.

A post opens with its title, its excerpt, the byline and the feature image. How those sit together is chosen per post with one internal tag; without a tag every post gets the default. The tag goes in the post's Tags field, exactly as written here, and takes effect on the next load (see Editorial conventions for how internal tags work).

The default

The default post header: title, excerpt and byline centred, the picture below

The topic above a centred title, the excerpt under it, the byline with the author's portrait, the share row and the controls, then the feature image across the reading column. No tag needed. A post without a feature image opens on its title.

The three layouts

Immersive

#hero-immersive

The feature image fills the first screen edge to edge, darkened towards the bottom, with the topic, the title and the excerpt in white over it; the byline follows on the page below. For a photograph that deserves the whole screen.

In the editor

A post's settings panel with #hero-immersive among its tags

On the post

An immersive post header: the picture fills the first screen, the title over it

Split, picture right

#hero-split-right

The title, excerpt and byline on the left, the feature image as a tall portrait on the right. On phones the words come first and the picture follows.

In the editor

A post's settings panel with #hero-split-right among its tags

On the post

A split post header with the picture on the right

Split, picture left

#hero-split-left

The mirror of split right: the picture on the left, the words on the right. On phones the picture comes first.

In the editor

A post's settings panel with #hero-split-left among its tags

On the post

A split post header with the picture on the left

A picture is required

All three layouts need a feature image. Without one the post opens with the default header whatever tag it carries. A post with two layout tags takes the first in this order: immersive, split right, split left. A #video post keeps the default header with the video in the picture's place, whatever other layout tag it carries: see Video posts.

Open the post in the editor and open its settings panel.

Under Tags, type the tag, for example #hero-immersive, and press Enter.

Make sure the post has a feature image, then update.

Drop cap

#dropcap

An oversized first letter on the opening paragraph, in the heading serif, for posts and pages alike. It appears only when the body opens with a paragraph: a post that starts with a picture, a heading or any other card keeps its text as it is, so a cap is never stranded in the middle of the page. It works with every layout above.

In the editor

A post's settings panel with #dropcap among its tags

On the post

A post opening with a drop cap

Styling them from Code injection

Each header carries a hook for Code injection: [data-region="post-header"] for the default, with [data-variant="immersive"], [data-variant="split-right"] or [data-variant="split-left"] for the three layouts, and [data-part="cover"] for the immersive picture; the body with a drop cap is [data-region="post-body"][data-variant="dropcap"]. For example, to soften the immersive picture behind the title:

<style>
  [data-region="post-header"][data-variant="immersive"] [data-part="cover"] { opacity: 0.85; }
</style>