Hero cover rail: WordPress Block Pattern, Pattern Paste Canonical: https://patternpaste.com/pattern/hero-cover-rail.html Core Patterns (https://patternpaste.com/patterns/) Hero (https://patternpaste.com/patterns/hero/) Catalogue access Standard # Hero cover rail A full-bleed hero on your own photograph, with a 1px hairline running down the middle of the picture to divide the statement from the facts. The headline, the line of orientation and the one button sit on a 28rem measure to the left of the rule; four tracked label and value pairs sit to its right. The rule is currentColor, so it is whatever colour your theme paints the type. Includes a replaceable example photograph. Ships with a short hand-off row on your theme's paper below it, so the hero reads as a section and not the page. ## All patterns Search patterns Loading patterns… The signature moment ## A structural mark A 1px vertical rule running the full height of the hero's content, straight down the middle of the photograph, dividing what the section claims from what it can prove. Nothing else in the catalogue has a vertical rule, and it works precisely because it is currentColor: it is not a colour the pattern chose, it is whatever colour the theme is already painting the type, so it inverts with the type in paper-rail without a single byte of the rule changing. Theme handoff ## What comes from where ### Theme and pattern Inherits: every colour (veil contrast, type and rule base), the typeface, the spacing scale. Decides: the veil's opacity, the 58/42 split, the 28rem measure on the left, the type ramp, the 40rem minimum height (in rem, never vh), and the rule itself. The button is the one filled thing in the composition: solid base ground with contrast text, border-radius: 0, sized with padding rather than a typography attribute, which does not stay valid across editor versions. Full pattern notes ## Why it works, and how it is built Open a topic for the complete design reasoning, editing guidance and implementation notes. Design rationaleComposition, intent and nearest alternatives ### Overview A full-bleed core/cover with an example photograph, with a heavy veil over the buyer's own photograph and a core/columns inside its inner container: the statement on the left at a 28rem measure, four label-and-value pairs on the right, and a hairline between them. ### The signature moment: a structural mark A 1px vertical rule running the full height of the hero's content, straight down the middle of the photograph, dividing what the section claims from what it can prove. Nothing else in the catalogue has a vertical rule, and it works precisely because it is currentColor: it is not a colour the pattern chose, it is whatever colour the theme is already painting the type, so it inverts with the type in paper-rail without a single byte of the rule changing. Make it yoursVariations and the edits to make first ### Variations - Paper rail: the veil is base at 80% and the type contrast, and the button inverts with them. The rule's markup is identical to the base's, which is the point of currentColor. - In motion: backgroundType: "video" and nothing else; a clip instead of a still, same veil, same type, same rule. Core writes autoplay muted loop playsinline and data-object-fit="cover" at render. Theme behaviourInheritance, fixed decisions and contrast ### What it inherits, what it decides Inherits: every colour (veil contrast, type and rule base), the typeface, the spacing scale. Decides: the veil's opacity, the 58/42 split, the 28rem measure on the left, the type ramp, the 40rem minimum height (in rem, never vh), and the rule itself. The button is the one filled thing in the composition: solid base ground with contrast text, border-radius: 0, sized with padding rather than a typography attribute, which does not stay valid across editor versions. Technical notesBlock mechanics, responsive behaviour and constraints ### How the rule is built, and why not a separator It is a per-side border on the right core/column: style.border.left = currentColor, solid, 1px, with a padding-left of clamp(1.5rem, 2.6vw, 3rem) holding the labels off it. Not a core/separator, for two reasons. A separator is horizontal and there is no core attribute that turns it, and Twenty Twenty-Four narrows any separator that is not is-style-wide to var(--wp--preset--spacing--60), so it would render as a 100px stub in a theme the catalogue is verified in. core/column supports __experimentalBorder with no skipped serialization, so the declarations land on the column's own
and nothing else in the block moves. The column carries no width: .wp-block-columns > .wp-block-column is flex-basis:0; flex-grow:1 and [style*=flex-basis] is flex-grow:0, so fixing the left column at 58% and leaving the right one to grow keeps the column's only inline style the border and the padding. ### Making it run the full height, and what happens at 390 Core pins .wp-block-columns { align-items: normal !important }, which is already stretch, and verticalAlignment: "stretch" is written on the columns block and on each child column, because a columns-level alignment does nothing on the front end (measured on cover-trio) and the editor writes it onto the children anyway. The right column therefore stretches to the height of the left column's type, and the rule is the height of the inner container rather than the height of the four pairs it sits beside. It is the full height of the CONTENT, not of the 40rem picture. A cover is display:flex; align-items:center and its inner container is sized by what is in it, so a rule that ran the whole 40rem would need CSS a pattern cannot ship. The cover's vertical padding is clamp(3.5rem, 7vw, 6rem), which is what sets how much picture is left above and below the rule. Below 782px core stacks the columns and the rule does not turn. It stays a left border on a now full-width block, so it reads as a rail down the side of the facts rather than as a divider between two columns. That is a deliberate outcome and not a fallback: the padding-left is unchanged, so the stacked facts are indented off the same hairline. Nothing here needs a media query, which is the only reason it is honest to say so. ### Why type on a photograph is permitted here A photograph's luminance is unknowable, so the rule is that type never sits on one. A cover's veil is the exception that can be measured: its colour is a chain and its opacity is a number, so it is measured composited over a white photograph and over a black one, at the worse pair. dimRatio is 80 for that reason and must not be lowered; at 40 the first draft of cover-veil measured 2.48:1 and was rejected. The cover states its own style.color.text as a chain so core's :where(.wp-block-cover:not(.has-text-color)) { color:#fff } never applies, and every heading and paragraph restates its colour, because a theme's heading element style beats an inherited group colour. ### What a buyer changes first The photograph: the cover includes an example image; choose Replace to pick one from the media library. Then the four pairs on the right, which are the part of the design that is actually about their business. Keep the values to two or three words; they are set at up to 21px and a long one wraps into the pair below it. ### The hand-off row A full-bleed hero on its own fills the preview on this page edge to edge, and on a buyer's page it is never alone either. So the pattern ships with what comes next: a short row on your theme's paper under the cover, a tracked label at a 12rem flex size and one paragraph at a 34rem measure. It is ordinary page copy, it shows where the hero ENDS, and it is the first thing a buyer rewrites or deletes. It carries the same chains as everything else. In paper-rail the cover and the hand-off row are both light, and the boundary between them is the photograph rather than a change of ground. ### Included images The copied markup includes WordPress Photo Directory example photographs. The public image URLs keep the examples visible after pasting. Select an image or cover and choose Replace to use your own Media Library files. See image credits (https://patternpaste.com/image-credits/) for the sources and licenses. Pasting an image URL does not import a Media Library attachment. Questions ## Hero cover rail: common questions Does Hero cover rail need a plugin? No. It is built only from core WordPress blocks (button, buttons, column, columns, cover, group, heading and paragraph), so it pastes into the block editor with nothing to install. Will Hero cover rail match my theme? Yes. It names no colour or font of its own: every colour, size and space is a preset from your theme, so it takes your theme’s palette and type when pasted. How many variations does Hero cover rail have? 3: Ink rail, In motion and Paper rail. Each is its own markup; choose one in the toolbar above the preview before you copy. Can I use my own images? Yes. Sample images stay in the copied blocks. Replace them in WordPress; pasting does not upload them to your Media Library. Is Hero cover rail free? It is included with a subscription, with every Core Pattern and variation. 62 Core Patterns are free to copy without one. 13KB of core-block markup, 8 blocks (button, buttons, column, columns, cover, group, heading, paragraph), and nothing else: paste it into the block editor and it becomes editable blocks wearing your theme. Subscribe to copy it, £49 a year (https://patternpaste.com/account/#plan) What you copy is yours forever. Not for you? We refund within 14 days. Back to Core Patterns (https://patternpaste.com/patterns/) Catalogue access ### £49 a year All patterns, variations and theme downloads. What you copy is yours forever. Not for you? We refund within 14 days. Subscribe, £49 a year (https://patternpaste.com/account/#plan) Sign in (https://patternpaste.com/account/) Everything you copy is yours to keep, forever, on any site; access to the rest of the library runs while you subscribe. Not for you? Tell us within 14 days of a payment and we refund you. After that, cancelling stops the next renewal and access runs to the end of the year you have paid for. Prices are in pounds and are the full price in the UK, the US and eleven other countries; elsewhere the checkout adds your local VAT or sales tax. The terms name every country. #### Pair with Features Appointment letter checklist What to bring to a first appointment, set as the confirmation letter itself: a card with the booking's details written into ruled blanks (date, time, who, where, length and fee) and a checklist of empty squares to tick the night before, beside a short introduction. States no colour and no font of its own. (https://patternpaste.com/pattern/appointment-letter-checklist.html)Stats Arisings recycled figures A figures section on an inverted slab where one number carries it: a percentage set at display size over a heading that finishes the sentence and a short note, beside a tall photograph. Under it three ruled tiles break the figure down, each a large percentage, a heading and a line, with a second photograph as the fourth tile. Four across on a wide screen, two on a tablet, one on a phone. States no colour and no font of its own. (https://patternpaste.com/pattern/arisings-recycled-figures.html)Compare Compact comparison rows A mobile-first responsive comparison layout using stacked capability cards: each row pairs a feature title and summary with a side-by-side comparison block, avoiding horizontal table scrolling on small screens. States no colour and no font of its own. (https://patternpaste.com/pattern/compare-compact-rows.html) #### Before you paste Requires a block theme on WordPress 7.0 to 7.1. Classic themes and page builders are outside our supported setup. Adaptive patterns use the block theme’s colour, spacing and typography presets; styled variations declare their own colours or type. How we test patterns (https://patternpaste.com/how-we-test/) Sample images stay in the copied blocks. Replace them in WordPress; pasting does not upload them to your Media Library. Video variations need your own clip. Image credits (https://patternpaste.com/image-credits/). ## Specifications Section Hero Access Subscription Plugin None, core blocks only Variations 3 Colour From your theme Type From your theme Motion None Blocks button, buttons, column, columns, cover, group, heading, paragraph Presets color 5, font-size 3, spacing 3 WordPress 7.0+ Continue exploring ## Next in Hero Explore all 32 Hero patterns (https://patternpaste.com/patterns/hero/)Also in Cover (https://patternpaste.com/patterns/cover/) Shot in Twenty Twenty-Five Hero No plugin needed ### Hero cover bookmark A bright café photograph fills a full-width cover behind a tall, inset copy panel. Hero Preview pattern (https://patternpaste.com/pattern/hero-cover-bookmark.html) Shot in Twenty Twenty-Five Hero No plugin needed ### Hero crown sheet A trade hero where a site-survey sheet laps up over the corner of a tall photograph: an oversized headline, a short line, a call button and a text link centred beside a 4:5 picture, and over its foot a framed card listing the tree, its height and the work proposed on ruled lines and the promise of a written quote in 48 hours. Hero Preview pattern (https://patternpaste.com/pattern/hero-crown-sheet.html) Shot in Twenty Twenty-Five Hero No plugin needed ### The Dispatch A magazine hero with a featured cover story and two secondary stories in a static issue layout. Hero Preview pattern (https://patternpaste.com/pattern/hero-dispatch.html)