Applies ToSharePoint in Microsoft 365 Microsoft 365 admin

When you add a modern page to a site, you add and customize web parts, which are the building blocks of your page.

This article focuses on the Sites web part.

  • Some functionality is introduced gradually to organizations that have opted in to the Targeted Release program. This means that you may not yet see this feature or it may look different than what is described in the help articles.

  • The Sites web part is not available in SharePoint Server 2019.

The Sites web part allows you to automatically show sites associated with a hub site (when a hub site is in use), or a current user's recent sites (which are the same as those shown on the user's SharePoint Home page). If you have specific sites you want to show, you have the option to select those instead of automatically showing sites. 

Sites web part

When sites are shown in the web part, each will include the name of the site, a link to the site, and the latest activity for the site. Recent user updates and views are examples of site activity.

Add the Sites web part to a page

  1. Go to the page where you want to add the web part.

  2. If you're not in edit mode already, click Edit at the top right of the page. Find the Toolbox (Toolbox icon in content pane) on the right.

  3. Select See all web parts, then select or drag-and-drop Sites from the list of web parts.

When you are using a hub site, the web part will automatically show sites that are associated with the hub site that your page is part of.  If you don't want that, you can select specific sites or the current user's frequent sites instead.

Choose which sites to show

  1. Click Edit properties (Icon for editing web part and section properties) on the top left of the web part to open the Sites properties pane.

  2. Do one of the following:

    • To select specific sites to show, click Select sites, and then search for the site you want to add, or select one or more sites from Sites associated with this hub, Frequent sites, or Recent sites. Then, select the checkboxes for the sites you want to show.

    • To show sites automatically, click All sites in the hub (only when you're using a hub site), or Frequent sites for current user (which displays the same sites as those on the user's SharePoint Home page).

      Sites web part settings

Change the layout

  1. If you're not in edit mode already, click Edit at the top right of the page.

  2. Click Edit properties (Icon for editing web part and section properties) to open the Sites properties pane.

  3. Under Layout, select Filmstrip, Cards,or Compact. Note that you can reorder sites only in the Cards layout.

    Sites web part layout settings

Reorder sites

  1. If you're not in edit mode already, click Edit at the top right of the page.

  2. Click Edit properties ​​​​​​​(Icon for editing web part and section properties) to open the Sites properties pane.

  3. Under Layout, select Cards. You can reorder items only in the Cards layout.

  4. In the web part on the page, drag and drop the sites in the order you want.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.