Substack: shrink oversized hero image
Caps the height of the giant hero image so you reach the start of the text sooner.
Code to copy
/* Force the oversized hero/title image down to a reasonable size */
.post-header .image-link img,
.post-header > img,
[class*="postHeader"] img:not([class*="avatar"]),
.cover-image img,
[class*="coverImage"] img {
max-height: 280px !important;
object-fit: cover !important;
width: 100% !important;
}
How to use this example
- Copy the code with the button above.
- Install JustZix (2 minutes) and open the extension on the target page.
- Add a new rule matching that page.
- Paste the code into the rule's CSS panel and save — the effect appears instantly.
Rate this example
No ratings yet — be the first.