Hero Web Part in SharePoint Online

While working with the SharePoint intranet portal, I had a requirement to display content in various formats, including images, videos, and text.

Utilizing the SharePoint Hero web part, we can display the group of content or store up to 5 items like documents, links, images, videos, site pages, etc, using different layers.

In this SharePoint online tutorial, I will explain a SharePoint Hero web part, how to insert items to a Hero web part, and how to use a Hero web part in SharePoint online with a simple example.

Hero Web Part in SharePoint Online

The Hero web part in SharePoint Online is a modern web part designed to showcase and highlight important content, links, or features on your SharePoint site.

It’s a visually appealing and interactive element used on SharePoint pages to draw attention to key information or resources. The Hero web part is commonly used on the home page of a SharePoint site but can be added to any modern page.

Refer to the image below for how it looks like:

how to add full width hero webpart in sharepoint

How to add Hero web part in SharePoint Online

The main purpose of the SharePoint Hero web part is to display up to five different content using different layouts.

Let’s see how to add the SharePoint Hero web part on the SharePoint site,

  • Open the SharePoint site. Select the Edit icon at the right corner of the SharePoint site page.
Hero webpart in SharePoint Online
  • To add the SharePoint web part to the site page, click the plus (+) icon.
Add SharePoint Hero Web Part
  • Here, Under the Text, media, and content, you can select the Hero web part from the list of web parts, as shown in the screenshot below.
  • After selecting the Hero web part, you will see the result on your SharePoint site page, as shown in the screenshot below.
Resize Hero web part

We saw how to add the Hero web part to the SharePoint site. Let’s discuss “how to add items to the SharePoint Hero web part.”

How to add items to the SharePoint Hero web part

  • Click on the Select link in a specific layout to add content.
sharepoint hero open in new tab
  • Here, a new page is opened where we can see the different options below:
    1. Recent: It displays all the files that were recently opened.
    2. Stock images: It shows all Microsoft’s stock images to the Hero web part.
    3. Web search: We can search content-related images.
    4. OneDrive: We can choose files from OneDrive.
    5. Site: We can select Documents, images, or site pages from the SharePoint site.
    6. Upload: you can upload a file that is present in your local system.
    7. From a link: Through the link, you can display images, videos, documents, etc.
sharepoint hero webpart image size
  • I selected the From a link option in this example and added a video link. You can add any URL/link in the given box. Once the link has been added, select the Add option. It will be added to the selected tile.
Remove a link from the SharePoint Hero web part
  • The added item will be displayed on the tile. You can check the screenshot below.
SharePoint Hero web part tiles example
  • If you want to add a title, background image, or action link, click the Edit icon in the selected tile.
    1. Link: The added data should always be saved as a link. If you want to change the data, click the “change” button, and you can add a title for the selected tile.
    2. Background image: You can choose the background image as an Auto-selected image, Custom image, or color block.
    3. Options: You can include an action text and an action link for the content. By clicking on the text, you can access further information in a new tab.
SharePoint Hero web part tiles customization example
  • Add content to remaining trails by following the same steps.
  • Click the Republish button to save all your SharePoint site page changes.
how to add full width hero webpart in sharepoint
  • You can see the responsive Hero web part in the SharePoint intranet portal, as shown in the screenshot below.
Change the layouts of the Hero web part in SharePoint

This way, we can add items to the SharePoint Hero web part. let’s discuss how to customize the SharePoint Hero web part.

How to Customize SharePoint Hero web part

  • After selecting the Hero web part, by default, you will get the Hero web part with the Tiles format and different tiles layers. You can see the below screenshot.

NOTE:

You can customize the Hero web part before adding the data items in SharePoint Online.
sharepoint hero web part customization
  • To customize the Hero web, click the Edit option.
  • In the SharePoint Hero web part, we have two types of layouts:
    1. Tiles
    2. Layers

Let’s discuss one by one.

1. Tiles: You can display different items in these Tiles. Every tile has a different size. For every layout of the tile, we add content concerning the title.

Also, we can add Action text and links for only larger tiles in the tile layout. Based on your requirements, you can select the layout options. Here, I select the “Three tiles” layout. you can observe the result as shown in the screenshot below.

sharepoint tiles customization in hero web part

2. Layers: You display different items in these Layers also. Every Layer has the same size. We can add content concerning the title, description, Action text, and Link for every layer layout. Based on your requirements, you can select the layout options. Here, I select the “Two layer” layout. you can observe the result as shown in the screenshot below.

sharepoint layers layout customization in hero web part

In this way, we can customize the SharePoint web part.

Conclusion

From this SharePoint tutorial, I hope you got some idea about the SharePoint Hero web part and why we will use it.

Also, we discussed how to add and customize a hero web part with a simple example.

Moreover, you may like some more SharePoint web part tutorials: