Skip to content

Latest commit

 

History

History
94 lines (62 loc) · 2.68 KB

File metadata and controls

94 lines (62 loc) · 2.68 KB
external help file Microsoft.Online.SharePoint.PowerShell.dll-Help.xml
Module Name Microsoft.Online.SharePoint.PowerShell
online version https://learn.microsoft.com/powershell/module/microsoft.online.sharepoint.powershell/set-spohidedefaultthemes
applicable SharePoint Online
title Set-SPOHideDefaultThemes
schema 2.0.0
author samkabue
ms.author speedta
ms.reviewer

Set-SPOHideDefaultThemes

SYNOPSIS

Specifies whether the default themes should be available.

SYNTAX

Set-SPOHideDefaultThemes [-HideDefaultThemes] <Boolean> [<CommonParameters>]

DESCRIPTION

The Set-SPOHideDefaultThemes cmdlet is used to specify whether the default themes that come with SharePoint should be included in the theme picker list. For example, you might want to create custom themes for your sites and then remove the default themes to ensure that all pages use your custom themes.

After creating the "Custom Cyan" theme, hiding the default themes leaves only the one custom theme in the themes list under Change the look.

Specify the setting as either $true to hide the default themes, or $false (the default setting) to allow use of the default themes.

Note

This cmdlet was named Set-HideDefaultThemes until the December 2017 release of the SPO Management Shell. We recommend that you use the latest version of the PowerShell cmdlets. [!TIP] Allows you to hide or show ALL default themes, no any particular ones. [!NOTE] This cmdlet hides the default themes on Modern Sites. You cannot hide the default themes on Classic Sites.

EXAMPLES

Example 1

In this example, the cmdlet hides the default themes.

Set-SPOHideDefaultThemes $true

Example 2

In this example, the cmdlet restores the default themes to the theme picker list.

Set-SPOHideDefaultThemes $false

PARAMETERS

-HideDefaultThemes

Determines whether to hide the default themes.

Type: System.Boolean
Parameter Sets: (All)
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

None

OUTPUTS

System.Object

NOTES

RELATED LINKS

Getting started with SharePoint Online Management Shell

Get-SPOHideDefaultThemes