How to Create Hero Section in WordPress using GenerateBlocks?

In this tutorial, learn to Create Hero Section in WordPress using GenerateBlocks (a powerful WordPress Block) plugin. Building a hero section is easier when you are using the GB Pro version as it has inbuilt templates that can be imported with one click.

Moreover, in this guide, you will also learn

  • Installing GenerateBlocks to create hero block.
  • Use Template Library from GenerateBlocks Pro to import the hero page.
  • Install SVG Support plugin to upload SVG Icons/images.
  • Use of free SVG Graphics in the hero section.
Create Hero Section in WordPress using GenerateBlocks

Install GenerateBlocks to Create Hero Section in WordPress

For creating the hero section, first, we are going to install the GenerateBlocks plugin that is available in the WordPress repository.

  • Go to your Dashboard.
  • Go to Plugins > Add New.
  • Search GenerateBlocks.
  • Click on Install and Activate.
  • Now you are ready to use GenerateBlocks with your installed theme.

Also Read: GenerateBlocks Review

If you want to use the GenerateBlocks Pro version then get the pro plugin from the official GB Website, Install it as a plugin, activate it, and enter the license key.

Installing Safe SVG plugin to upload SVG Files

Uploading a big image slows down your website, so here we are going to upload an SVG image in our hero section. You can design your own SVG image and upload it or download it from the internet. The size of SVG files is generally smaller compared to JPG or PNG.

For this tutorial, I am going to use SVG images from, you can download SVG or PNG images from this site for free to use in your project.

SVG files contain XML codes and WordPress doesn’t allow you to directly upload SVG files in the media library due to security purposes. So, here we are going to use SVG Support or Safe SVG plugin.

  • Go to your Dashboard.
  • Go to Plugins > Add New.
  • Search for SVG Support or Safe SVG plugin. Install only one plugin.
  • Install and Activate the Plugin.
  • Now you can upload SVG files in your Media Library.

Create a Hero Section in WordPress

After installing the GenerateBlocks and SVG Support/Safe SVG plugins, now let’s add a hero block in WordPress. We create a hero section on our home page. So, Go to Pages and click on Add New.

Here, we are going to use the full width of our page so disable the sidebar in your theme. Since I am using GeneratePress Theme, I have an option to disable the sidebars (No Sidebars).

Also, I am going to use the Disable Elements features from the GeneratePress WordPress Theme to disable the content title.

To use Disable Elements, you need to activate the Disable Module from GeneratePress Settings. Go to Appearance > GeneratePress > Activate the Disable Elements Module.

Moreover, your WordPress Theme may have similar features, please check and set up it.

GeneratePress No Sidebars and Disable Elements

Now, Let’s add Hero block step by step using GenerateBlocks. We are going to use Container, Grid, Headline, and Buttons blocks.

1. Add a Container Block

Go to the content area and Add a New Block Container.

Add Container Block

After adding a container block, make a page full-width using the container block settings in the sidebar.

Make page full-width in GenerateBlocks

Now, I am going to Background color by using a gradient to the whole container or you can even use background color here.

I am using #8e2de2 hex code for color one & #4a00e0 for color two with full opacity and remaining setting as in the screenshot.

Background Gradient in GenerateBlocks

Also, use margin and padding for the container from the sidebar setting to make the hero section look clean and better.

2. Add Grid inside Container Block

Here inside the Container block, we are going to use a 50/50 Grid Layout, where on one grid we are going to add text including heading, paragraph & button and on the other grid, we are going to use SVG image.

50-50 Grid Layout GenerateBlocks

3. Adding Headlines, Paragraph,s and Buttons

On the left Grid, we are going to add Headline, Paragraph, and Buttons so follow the below steps.

Click on the + icon and add a Headline block (not default Heading from WordPress). Add your headline, by default I am using H2. Also, manage typography, spacing, colors, etc. for H2 from the sidebar settings.

Headline for Hero Section

Below, the H2 Headline, Add a new Headline block, choose paragraph instead of H2, and add your Text.

Also, add GenerateBlocks Buttons (not default WordPress Button) below the Paragraph and adjust typography, colors, icons, margin, padding for both paragraphs and buttons as required.

Headline Paragraph Buttons in Hero Section using GenerateBlocks

Finally, We have finished the part of the left side Grid, now add an image to the right grid.

4. Adding SVG Image

Now, on the right Grid, we are going to add an image, you can either choose JPG, PNG images, or SVG. Here I am using an SVG image from since the size of the SVG file is smaller.

Click on the + sign and select the image block to add the SVG image. For example, I am using a random image from Manage position, size, etc for the image and preview to your hero section.

Adding SVG image in hero section of WordPress

5. Hero Section Result

Finally, we can create a hero section using GenerateBlocks. You can modify the look as you need. Adjust margin, padding, and other settings as necessary.

Final Look for Hero Section in WordPress using GenerateBlocks

This is just a simple hero section, you can design an advanced hero block and create an amazing layout or you can import from the GB Pro version as mentioned below.

Here in the hero section, you can also add a subscriber box or testimonial of your customers, etc.

Import Pre-built Hero Block from GenerateBlocks Pro

If you are a GenerateBlocks Pro user then you don’t have to worry about creating the hero section in WordPress. There are already pre-built Hero Blocks in the GeneratBlocks Pro version with many other pre-built custom blocks that can be imported with one click.

To import a pre-built hero block, you have to install and activate the GenerateBlocks plugin. Also, activate the GB Pro license and then follow the following steps.

Go to the post/page where you want to import and add the hero block.

Click on Add New Block and search Template Library.

GenerateBlocks Template Library

Now you will see the full template library. From Select Category, Click on Hero Block.

Hero Block in GenerateBlocks Pro

Now, you can see various Hero Blocks that are pre-designated, you can import them to your website with one click, select the one, and try it on your WordPress site.

Hero Blocks Design in GenerateBlocks Pro Version

The hero block is fully customizable so, replace images if exist, and change the design, and colors quickly using GenerateBlocks settings. Customize the setting until it meets your needs.

Furthermore, the plugin comes with a variety of features so, I fully depend on the GenerateBlocks Pro version to create awesome designs quickly.

At the End

With GenerateBlocks, you can design anything you want in your WordPress site, from creating a hero section to designing Amazon affiliate product boxes, etc.

I hope now by reading this guide, you will be able to create Hero Section in WordPress using GenerateBlocks. If you have any questions then please feel free to comment below.


I am obsessed with WordPress and write articles about WordPress Speed Optimization, SEO, and Blogging. I mostly publish tutorials on GeneratePress, Astra, Kadence, and GenerateBlocks.

Leave a Comment