How to create hero sections in WordPress
You can create a basic WordPress hero section without a plugin by using the Cover block, adding text and a button, then setting the width, height and overlay. Use a hero plugin for sliders, animated layers or more advanced effects.
- 01Plan the hero content
- 02Add a Cover block
- 03Add the headline and button
- 04Set the width and height
- 05Check mobile and accessibility
- 06Use a hero builder for advanced effects
What you need
- A WordPress site with the block editor enabled
- Administrator or editor access
- A suitable hero image or short background video
- Headline, supporting copy and call-to-action text
Plan the hero content
Write one clear headline, a short supporting sentence and one primary call to action. Keep the first screen focused on a single job, such as booking a call, viewing a product or joining a mailing list.
Prepare a wide image that still works when cropped on a phone. If you use video, keep it short and avoid putting important information inside the moving background.
Add a Cover block
Edit the page, template or pattern where the hero should appear and add a Cover block. You can type /cover in the editor, then upload an image, choose media from the library, select a video or use a background colour. The Cover block is designed for text and other content over an image or video.
This is the manual route, and it is usually enough for a single static hero. It does not give you a slide carousel, animated text layers or decorative particle effects without extra code or a plugin.
Add the headline and button
Click inside the Cover block and add a Heading block, Paragraph block and Buttons block. Keep the heading short, then use the button to link to the next step in the visitor journey. Set the button label to describe the result, such as Start a free consultation rather than Click here.
Use the Cover block’s content-position controls to place the content where the image has enough contrast. Add an overlay colour and adjust its opacity so the text remains readable.
Set the width and height
Select the Cover block and choose Full width if your theme provides it. You can also enable the full-height option for a screen-filling landing-page hero, but a shorter section is often better on content-heavy pages. The Cover block also supports focal-point controls so you can keep the important part of an image visible when it is cropped.
If the hero remains boxed in, select its parent Group or Row block and set that container to full width too. A theme or page template can impose a content width, sidebar or constrained wrapper, so changing only the Cover block may not fix the front end.
Check mobile and accessibility
Preview the page on a narrow screen and check the heading, button and focal point. A background image may crop differently on mobile, while a video can make the section slow or distracting. Use a compressed image, avoid a fixed background when it causes scrolling problems, and keep the overlay strong enough for readable text.
Use meaningful heading structure, descriptive button text and sufficient colour contrast. If the background image is decorative, do not put essential information in it; place that information in the heading or paragraph instead. WordPress supports responsive image markup for image elements, but background media still needs sensible sizing and optimisation.
Use a hero builder for advanced effects
The fast way is to use Slider Hero Pro when you need more than one hero slide or want video backgrounds, animated typography, particles, gradients, parallax effects, responsive settings and lazy loading without writing the layout yourself. Build the hero visually, then publish it with its Gutenberg block, shortcode or widget.
Keep the native Cover block for a straightforward static header. Choose the plugin route when the hero is a central landing-page feature and the extra animation, slide controls or decorative layers justify another plugin to maintain.
Let Slider Hero Pro do it
Visual hero builder with video backgrounds, animated text and particles for standout landing-page headers without a page builder.
Sources
- wordpress.org /documentation/article/cover-block/?utm_source=openai
- wordpress.com /support/wordpress-editor/blocks/cover-block/style-a-banner/…
- wordpress.org /support/topic/width-restrictions-and-cover-block-problems/?…
- developer.wordpress.org /apis/responsive-images/?utm_source=openai
Questions
- Can I create a WordPress hero section without a plugin?
- Yes, you can create a basic hero section with the core Cover block. Add an image or video background, place a heading, paragraph and button inside it, then set the overlay, content position, height and alignment. You only need a plugin when you want features such as multiple slides, animated layers, particles or advanced video controls.
- Why is my hero section not full width?
- Your theme, page template or a parent Group block may be restricting the width. Select the outer Group or Row block and set it to Full width, then check the Cover block itself. A sidebar or constrained content template can still limit the result, so switch to a suitable full-width page template if your theme provides one.
- Should I use an image or video background for a hero?
- Use an image unless motion is important to the message. Images are usually lighter, easier to crop and less distracting. A short, compressed video can work for a visual brand statement, but it may load slowly on mobile and should not contain information users need to read. Always test the hero on a phone and keep a readable overlay behind the text.
- How tall should a WordPress hero section be?
- There is no universal height, but a hero should show the headline and call to action without forcing visitors to scroll unnecessarily. Use a moderate fixed height for most pages and full height only when the hero is the main landing-page experience. Check the result on mobile because a desktop height can make the section too tall or push the useful content below the fold.