Creating a Hero Section using Flexbox containers

Introduction

A Hero is one of the most commonly used sections on your page. It generally contains a large image and text in a 50/50 layout. It can be used as an about us, a bio, a mission statement, or to sell a product. In this tutorial we will create a simple hero in the most optimized way using the Container.

Note: An additional Container may be used to place the image(s) in if more than one is required, or other additional content needed. It is not required in this tutorial and would result in an unneeded wrapper.


Getting started

Begin by adding a new page or editing an existing one with Elementor. You will then be able to start building.

Add a new container

  1. Create a new Container by clicking the + sign
  2. Select the single Column layout*
  3. In the Container layout properties, change the Height to 60VH
  4. Open the Item properties accordion
  5. From the Direction options, select the Row property
  6. Align the items to center
  7. In the Advanced Tab give the Container some padding (example: 21PX)

Add Image widget

  1. From the Widget Panel, drag and drop an Image widget to your Container.
  2. Select an Image from your media library. This image should already be prepared and optimized for your website in Ps or Canva
  3. In the Advanced Tab, use the Width feature to size the image to 50%
  4. From the Style Tab, you may add additional options. A box shadow is applied here for effects.

Add a child container

  1. From the Widget Panel, drag and drop a new Container to the right (or left) of your image
  2. From the Layout Tab, choose the Full Width option from the dropdown
  3. Set the Width of the Container to 50%
  4. Set the Minimum Height of the container to work best with your image (example:55VH)
  5. From the Style Tab, you may give your Container additional options. A 2PX border is applied for a visual guide here.

Add the content

  1. From the Widget panel, drag and drop a Heading widget to the Child-Container and edit its content
  2. Next drag a Text Editor widget below the Heading. This will be the body of your hero. For faster workflow, you should have it prepared and ready to paste into the editor
  3. Give your hero a call to action. Add a Button widget below the text editor and edit it. This may be linked to a page, post, or product
  4. To make final adjustments, return to Container Layout
  5. From the Justify Content properties, select Space Evenly to align all the content to the center.
  6. Additional padding may be added if using a border. You may do this from the Advanced Tab of the Child-Container (example: 13PX).

Check responsive views

  1. Open the Responsive views by clicking on the icon located at the bottom of the Editor Panel
  2. Check the tablet and mobile views
  3. Make minor adjustments to the size of text and width on the image to best fit your design.

Go dynamic!

You can take your designs one step further by using the dynamic capabilities. Most Elementor widgets can use dynamic tags to call a featured image, meta data, custom fields, and products from WooCommerce.

By using these in this example, you can have the dynamic tags call all the content of this product. The image may be called from the featured image of the product and linked. The Heading, Text Editor and Button may also be made to automatically update dynamically. The Button widget may also be changed to a Custom Add to Cart button to instantly collect a sale. Any time the product is edited in WooCommerce, it will then reflect in your Hero Container. Use these functions to create more revenue from your website.

Next steps

Check out some other layouts you can create with containers:

Creating an Intro Section using Flexbox Containers

Creating a Call to Action Section using Flexbox Containers

Creating A Services Section using Flexbox Containers

Creating a Hero Image Gallery using Flexbox Containers


Share it on social networks

Share on facebook
Share on twitter
Share on linkedin
Share on email
Was this article helpful?

Get Started With Elementor Today

Join millions of professionals who use Elementor to build WordPress websites faster and better than ever before

On this page