Skip to content

Commit 071470d

Browse files
committed
Theme adjustments
1 parent 13fe7eb commit 071470d

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

docs/declarative-customization/site-theming/sharepoint-site-theming-overview.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,35 @@ When you select a classic theme, a modern theme will be generated from the setti
5454

5555
For the simplest experience, we recommend that you use modern themes with modern pages. If you need to use classic themes with modern pages, test your site carefully to verify that your content is readable and accessible.
5656

57+
## Change the default experience at the site collection level by using Windows PowerShell (for administrators)
58+
59+
While the new client-side theming architecture is more performant, if you have customizations that aren’t rendering properly after you change the site’s theme you can opt the site out of the new theming experience by disabling the feature.
60+
61+
To do this you must use a Windows PowerShell script with a CSOM (Client-side object model) wrapper. We recommend using the PnP enable feature command:
62+
63+
1. Verify that you meet the following minimum requirements:
64+
* You are a global administrator
65+
* You must read about [Execution Policies](https://technet.microsoft.com/library/dd347641.aspx)
66+
67+
1. Download the latest PnP PowerShell from https://github.com/SharePoint/PnP-PowerShell/releases
68+
69+
1. Enter `Connect-PnPOnline -Url <SiteUrl> -Credentials getCredentials`(replacing `<SiteUrl>` with the url of the site you wish to opt out)
70+
71+
1. Enter your credentials when prompted.
72+
73+
1. To opt-out the site you need to enable a feature:
74+
75+
* Enter `“Get-PnPFeature -Scope Site -Identity 5138468E-3D76-4F72-9DE4-E029F1245A7B”`
76+
* Verify that nothing is returned from the previous command (this confirms the feature isn’t enabled yet)
77+
* Enter `“Enable-PnPFeature -Scope Site -Identity 5138468E-3D76-4F72-9DE4-E029F1245A7B”`
78+
* Enter `“Get-PnPFeature -Scope Site -Identity 5138468E-3D76-4F72-9DE4-E029F1245A7B”`
79+
80+
1. Verify that the following is returned:
81+
82+
*ClientSideThemingOptOut* - *5138468e-3d76-4f72-9de4-e029f1245a7b*
83+
84+
1. For additional information about Windows PowerShell, see [Using Windows PowerShell](https://msdn.microsoft.com/powershell/scripting/getting-started/fundamental/using-windows-powershell).
85+
5786
## See also
5887

5988
* [Change the look of your SharePoint site](https://support.office.com/en-us/article/Change-the-look-of-your-SharePoint-site-06bbadc3-6b04-4a60-9d14-894f6a170818?ui=en-US&rs=en-US&ad=US#ID0EAACAAA=Online)

0 commit comments

Comments
 (0)