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.
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
- Create a new Container by clicking the + sign
- Select the single Column layout*
- In the Container layout properties, change the Height to 60VH
- Open the Item properties accordion
- From the Direction options, select the Row property
- Align the items to center
- In the Advanced Tab give the Container some padding (example: 21PX)
Add Image widget
- From the Widget Panel, drag and drop an Image widget to your Container.
- Select an Image from your media library. This image should already be prepared and optimized for your website in Ps or Canva
- In the Advanced Tab, use the Width feature to size the image to 50%
- From the Style Tab, you may add additional options. A box shadow is applied here for effects.
Add a child container
- From the Widget Panel, drag and drop a new Container to the right (or left) of your image
- From the Layout Tab, choose the Full Width option from the dropdown
- Set the Width of the Container to 50%
- Set the Minimum Height of the container to work best with your image (example:55VH)
- From the Style Tab, you may give your Container additional options. A 2PX border is applied for a visual guide here.
Add the content
- From the Widget panel, drag and drop a Heading widget to the Child-Container and edit its content
- 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
- 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
- To make final adjustments, return to Container Layout
- From the Justify Content properties, select Space Evenly to align all the content to the center.
- 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
- Open the Responsive views by clicking on the icon located at the bottom of the Editor Panel
- Check the tablet and mobile views
- Make minor adjustments to the size of text and width on the image to best fit your design.
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.
Check out some other layouts you can create with containers: