Fix “There was an error while attempting to get the themes” Error in SharePoint Online

Problem: When trying to change the site theme in SharePoint Online through “Settings >> Change the Look >> Theme,” I got an error message “There was an error while attempting to get the themes”. Workaround: You may encounter this issue when you make multiple changes to the site’s look and feel, like…

Read more

SharePoint Online: Create Site Design and Site Scripts using PowerShell

What is Site Design and Site Scripts in SharePoint Online? Site design and site scripts are the new way to create site templates in SharePoint Online. Say, you want to create sites with a specific theme, apply a logo, set regional settings, create a list or library in the site, add users,…

Read more

SharePoint Online: How to Change Suite Bar Color?

Requirement: Change suite bar color for SharePoint Online site. SharePoint Online: How to Customize Suite Bar Color? By default, the suite bar looks in a black or blue background, and changing the theme in modern sites doesn’t change the color or the top suite bar in SharePoint Online. To set the default…

Read more

SharePoint Online: Apply Modern Theme using PowerShell

Requirement: Change the site theme in SharePoint Online. How to apply theme in SharePoint Online? In SharePoint Online, Themes are responsible for colors in various site elements. To align with your organization’s branding guidelines, you can create and apply a theme in SharePoint Online. There is a set of default site themes…

Read more

SharePoint Online: Apply Theme using PnP Provisioning Template PowerShell

Requirement: Set Theme in SharePoint Online Site using PnP PowerShell Provisioning Template. How to Change the Site Theme in SharePoint Online using PnP Provisioning Template? Go to the PnP Provisioning Schema repository in GitHub and build your provisioning template. https://github.com/SharePoint/PnP-Provisioning-Schema, Here is mine: Provisioning Template Schema XML for Theme: Make necessary changes…

Read more

SharePoint Online: Remove a Custom Theme using PowerShell

Requirement: Remove a custom theme in SharePoint Online If you’ve ever customized your SharePoint Online site by adding a custom theme, you may have later decided that you don’t like the look and feel of the theme. Or maybe someone else in your organization has created a custom theme that you don’t…

Read more

SharePoint Online: How to Change Site Theme using PowerShell?

In SharePoint Online, you can customize the look and feel of your site by changing themes to reflect your corporate branding. A theme in SharePoint Online defines the colors, fonts, images, and page layout for the SharePoint sites. SharePoint provides a default set of site themes,  and we also have the ability…

Read more

SharePoint Online: How to Hide Default Themes?

Themes are quick ways to add branding to SharePoint Online sites. However, we wanted to restrict site owners from changing the themes for a uniform look and feel overall sites. Fortunately, SharePoint Online provides a cmdlet to hide default themes and enforce governance. PowerShell to Hide Default Themes in SharePoint Online Open…

Read more

SharePoint Online: How to Add New Custom Theme using PowerShell?

Requirement: Create a new Theme in SharePoint Online How to create a new color theme in SharePoint Online? SharePoint Online Modern sites (Teams, Communications, and Hub sites) provide a set of default themes (Blue, Orange, Red, Purple, Green, and Gray), which you can use to quickly change the look and feel or…

Read more