SharePoint Hero Web Part

Let us discuss the SharePoint hero web part in this modern SharePoint tutorial.

Will learn how we can add a modern SharePoint hero web part into a modern site page in SharePoint Online. Various layout options in the SharePoint Hero web part and how to configure Tiles and layers in the Hero web part SharePoint modern page.

We will see a few examples on a SharePoint Online environment, but in the same way, you can also use it in SharePoint server 2019.

SharePoint online hero web part

Microsoft provides a lot of out-of-box web parts in the modern SharePoint site. One of the most used web parts is the SharePoint hero web part.

The SharePoint Hero web part is a super attractive web part that allows us to show up to five items that can have links to images, documents, or pages in different layouts. By default, the Hero web part is included in the SharePoint modern sites.

The modern hero web part is also available in SharePoint 2019.

Hero web part in modern SharePoint site

When you will create a modern communication site in SharePoint Online, by default the Home page will have a Hero web part configured with default links, images, and text.

Based on our requirements, we can also change the pre-populated document, pages, links, text, or images.

How to add Hero web parts to a Modern SharePoint site

Let us see how to add Hero web parts to the SharePoint Online modern site.

  • Open the SharePoint Modern site page and Select Edit Page at the top right corner of the SharePoint site page.
  • Click + circled icon to add a new Section layout and Select Hero web part.
Hero webpart SharePoint modern page
Hero web part SharePoint modern page
  • The Hero web part in SharePoint allows us to add pages, images, links, and documents in various layouts. The items can be to an image, page, or document within your modern SharePoint online site page, or you can also mention the link to another URL (external).
  • We can select the layout type that we want to display, The maximum we can select is 5 tiles or 5 layers.
  • Select Edit Web Part Icon and choose the Layout options as shown below:
sharepoint online hero web part
SharePoint online hero web part
sharepoint hero web part
SharePoint hero web part

This is how we can add the Hero web part to a Modern SharePoint site.

Read How to Customize SharePoint Modern list form using JSON

Change layout of a SharePoint Hero web part

Let us see how to change the layout of the Hero web part in SharePoint Online.

There are 2 types of layout options are available in the Hero web part. They are,

  1. Tiles 
  2. Layers

We can change the layout by editing the Hero web part.

Select and Edit the hero web part. We can select the layout type that we want to display, The maximum we can select is 5 tiles or 5 layers.

sharepoint hero web part layout
SharePoint hero web part layout

Once you change the layout of the Hero web part. Click on the Save as a draft mode to commit the changes.

Read SharePoint modern list view customization example

Layout options Tiles example

  • One tile: The below-mentioned image represents the One tile layout option in the SharePoint Modern site hero web part.
sharepoint online hero web part full width
hero web part one tile in SharePoint modern site
  • Two tiles: The below-mentioned image represents the Two tiles layout option in the SharePoint Modern site hero web part.
sharepoint hero web part image size
hero web part two tiles in SharePoint modern site
  • Three tiles: The below-mentioned image represents the three tiles layout option in the SharePoint Modern site hero web part.
sharepoint hero web part size
hero web part three tiles in SharePoint modern site
  • Four tiles: The below-mentioned image represents the Four tiles layout option in the SharePoint Modern site hero web part.
sharepoint online hero web part layout
hero web part four tiles in SharePoint modern site
  • Five tiles: The below-mentioned image represents the Five tiles layout option in the SharePoint Modern site hero web part.
modern sharepoint hero web part layout
hero web part five tiles in SharePoint modern site

Read How to remove SharePoint Online Modern Page Title using PowerShell

Layout options Layers example

  • One Layer: The below-mentioned image represents the One Layer layout option in the SharePoint Modern site hero web part.
sharepoint hero web part more tiles
hero web part one layer in SharePoint modern site
  • Two Layers: The below-mentioned image represents the Two Layers layout option in the SharePoint Modern site hero web part.
sharepoint 2019 hero web part image size
hero web part two layers in SharePoint modern site
  • Three Layers: The below-mentioned image represents the Three Layers layout option in the SharePoint Modern site hero web part.
sharepoint hero web part open in new tab
hero web part three layers in SharePoint modern site

This is how we can select the tiles or layers in the Layout option for the SharePoint Modern site Hero web part.

Check SharePoint Image Web Part

Let us discuss how we can change the text, image, and links for each layer or tile in the Hero web part of the SharePoint modern page

  • Open the SharePoint site where you want to change the image, text, and links for each layer or tile on the SharePoint site in the Hero web Parts.
  • Choose Edit Page at the top right corner of the SharePoint site page.
  • Click on the Select link option to select a link to an image, document, or page.
sharepoint 2019 hero web part image size
hero web part in the SharePoint modern page example
  • Once the Select link is clicked, a popup appears as below, we can select a page, image, or document from the options.
hero web part on the sharepoint modern page example
hero web part on the SharePoint modern page example
  • Now you can select a link to recent images, recent documents, or recent pages. You can also insert Stock images, From a link option, and also you can select the upload option to upload an image or document.
  1. Recent -> We can see it listed out the recently opened documents, images, or pages.
  2. Stock images -> You can insert the Stock images to your SharePoint site page.
  3. Web search-> We can insert the web search bing images to our SharePoint site.
  4. One Drive -> Provide a link for an image or document that you have saved on the OneDrive.
  5. Site -> Provide a link for a page, image, or document from a SharePoint Site.
  6. Upload -> Upload a page, image, or document from a SharePoint Site.
  7. Site -> Provide a link for a page, image, or document from a SharePoint Site.
  8. From a link -> Enter a link for your document, image, or page from OneDrive or SharePoint in Microsoft 365.

Select the link for your page, document, or image and click on the Insert option as shown below:

hero web part in the sharepoint modern page
hero web part in the Sharepoint modern page

After inserting an image, you can edit the following options.

sharepoint modern hero web part image size
SharePoint modern hero web part image size
  • Select the Link option Under the Hero web part to add the Title and Description. You can also choose whether or not to display the Title in the layout. Title -> we can add a title for the image which is optional. Description -> we can add a description for the image which is optional.
hero web part on SharePoint online site
hero web part on the SharePoint modern site
  • Select Background Image Under Hero web part to add the Background image. Auto selected -> Selects an image automatically from the SharePoint page. If there is no default image available for an auto-select option, in that scenario you have to select a custom image. Custom image ->  we can select the Custom Image option, which allows us to upload or select an image that we want to display. Alternative text -> To Describe the image. It is available for both the Auto Selected and the Custom image option.
sharepoint hero web part image size
hero web part SharePoint modern site
  • Select Options Under Hero web part to add Topic heading and call to action text and link.
  • You can show the topic heading by switching the toggle to Yes. Topic heading text ->You can add your topic heading text. To show a call to action link, switch the toggle control to Yes. Call to action text ->You can add your text in the Call to action text option Call to action link ->You can paste the link in the Call to action link which redirects to the mentioned URL.
sharepoint hero web part open in new tab
hero web part on SharePoint modern site

This is how we can change the image, text, and links for each tile or layer in the Hero web part of the SharePoint modern page.

Read How to Add Modern SharePoint Site Page in Microsoft Teams

To remove a link from the SharePoint Hero web part, follow the below steps:

  • Open the SharePoint site page where you want to change the image, text, and links for each tile or layer on the SharePoint site in the Hero web Parts.
  • Select Edit Page at the top right of the SharePoint site page.
  • Select the web part, and click on the web part edit button on the left.
  • Select the Change button Under the Link option, a popup will appear where we can remove the link and select a link to an image, document, or page.
sharepoint online hero web part open in new tab
hero web part SharePoint online site
  • Select a From a link option and remove the previous link and paste the new link source to a document, list, or library (https:// or http://).Once you paste a link click on the Insert option.
sharepoint 2019 hero web part open in new tab
hero web part SharePoint modern page

This is how we can remove a link from the Hero web part in the SharePoint modern page.

SharePoint more than 5 tiles

No, we cannot add more than 5 tiles in a SharePoint Online hero web part. Even in the Layers layout, it does not allow more than 5 layers.

But you can use SPFx to develop your own custom web part and add more than 5 Titles.

Read How to Create a Tiles View using SharePoint Online modern list view customization

Image scaling in the Hero web part

Let us learn about image scaling in the Hero web part of the SharePoint modern page. In the SharePoint modern page hero web parts, images that are used will scale differently depending on the selected layout and the device’s access to the SharePoint page.

  • The hero web part is planned in a full-bleed layout to fit the width of the screen.
  • The height of the layout of the tiles is scaled as a ratio of 8:3, and the images inside within the web part is a ratio of 4:3.
  • Each layer in the layers layout scales is a ratio of 8:3, and images within every layer scale the ratio of 9:16.
  • Videos cannot be played on the web part. We can add or upload videos in the Hero web part.
  • To view the video, either user can select the video or the video source URL.

Resize Hero web part

  • The hero web part size is responsive and built-in in the SharePoint modern page, so it will resize dynamically for different screen sizes and devices.
  • It is designed to have very big images which are easy to tap or click on on any device. 
  • You cannot resize the hero web part on the SharePoint modern page.

Read SharePoint Online modern list column formatting using JSON

Modern SharePoint Hero web part Edit

  • Go to the SharePoint site page where you want to edit the image, text, and links for each tile or layer on the SharePoint site in the Hero web Parts.
  • Choose Edit Page at the top right of the SharePoint site page.
how do i resize a hero webpart in sharepoint online
Edit hero web part
  • Select an image, and an item from the link will be shown automatically.
  • When you hover over the layer or tile, we can see a little edit icon in the lower right, which you can use to edit the image, text, and link some other options.
  • We can also able to zoom in or out of the image. Use the Move icon, to move the layers or tiles around within the Hero Web Part.
Modern SharePoint Edit Hero web part
Modern SharePoint Hero Edit web part

This is how we can edit the Modern SharePoint hero web part

Read SharePoint Online modern list properties web part

Modern SharePoint hero web part Color Block

Let us see how we can change hero web part tiles or layers to color block

  • Go to the SharePoint site page, where you want to Change the Color Block for each tile or layer on the SharePoint site in the Hero web Parts.
  • Choose Edit Page at the top right corner of the SharePoint site page.
  • Hover over the layer or tile, now we can see a small edit icon on the right, which is used to edit the Color Block.
  • The third option is Color Block, which takes color from the current SharePoint site theme.
  • Add some Alternate Text in this section for those who are not able to view the image.
Modern SharePoint Hero web part color block
Modern SharePoint Hero web part color block

This is how we can change the color block in the Modern SharePoint hero web part.

Read File viewer web part in SharePoint Online modern site

Modern SharePoint hero web part in new tab

Let us see how to open the Hero web part links in a new tab.

Hero web part in SharePoint modern only allows the External URLs to open in the new tab.

  • Open the SharePoint site page, and click on the Edit Page button at the top right of the SharePoint site page.
  • Select the Change button Under the Link option as shown below, a popup will appear
Modern SharePoint hero web part in new tab
Modern SharePoint hero web part in new tab
  • Select a From a link option and paste an external URL to view it in the new tab. Once you paste a link click on the Insert option.
sharepoint online hero web part open in new tab
Modern SharePoint hero web part new tab
  • Click Republish, so that the SharePoint modern site page will commit your changes.
  • Once published you can select the tile or layer in the SharePoint hero web part that opens the mentioned URL in the new tab.

This is how we can open an external link in a new tab Modern SharePoint hero web part.

Read Create Page templates in SharePoint Online Modern Experience

Modern SharePoint Hero web part dimensions

  • The height of the layout of the tiles is scaled as a ratio of 8:3, and the images inside within the web part is a ratio of 4:3.
  • Each layer in the layers layout scales is a ratio of 8:3, and images within every layer scale the ratio of 9:16.

The above-mentioned points explain the modern SharePoint hero web part dimensions.

Related SharePoint tutorials:

We understood the SharePoint Online hero web part in the tutorial, what is hero web part and how can we add the hero web part to the SharePoint Online modern site page. And also covered below topics:

  • Change the layouts of the Hero web part in SharePoint
  • How to change the image, text, and links for each tile or layer in SharePoin
  • SharePoint more than 5 tiles
  • Image scaling in the SharePoint Hero web part
  • How to remove a link from the SharePoint Hero web part
  • Modern SharePoint hero web part in new tab
  • How to edit Modern SharePoint Hero web part
  • Resize Hero web part SharePoint
  • Modern SharePoint hero web part Color Block
  • Hero web part dimension in SharePoint
>