Feature Media
The feature image you set in Post settings stands under the title, across the width of the page. It has a 16:9 shape and is never taller than four fifths of the window. The picture is cropped to fill the box.
What the Box Shows#
| Post | What fills the box |
|---|---|
| A post with a feature image | The feature image. A click opens it full screen, unless lightbox is in Disabled features |
| A post without a feature image | No box. The text follows the title |
A post tagged #video | The video that opens the post. See Video Post |
The caption you write under the feature image in the editor stands under the picture.
Pages show the same box when Show title and feature image is on in Page settings.
Changing the Shape#
To change the shape, add a rule in ⛭ Settings → Code injection → Site header. See Code Injection.
<style>
.post-head-media .post-head-image {
aspect-ratio: 21 / 9;
}
</style>
Any ratio works, for example 3 / 2 or 1 / 1. The rule applies to every post and page, and the picture is cropped to the new shape.
The --feature-media--aspect-ratio variable used by other Prime Direction
themes changes only the video box of a post tagged #video in Morrow.
For the feature image, use the rule above.
Notes#
- Choose feature images with the subject near the middle. The crop trims the top and bottom of a portrait picture.
- The cards on the front page and in the archives crop the same image to their own shapes, and the masthead shows the lead's image through its letters. The rule above does not change them.