Manage CSS Only theme Settings

Info: The bellow steps require the use of PnP PowerShell, the latest version can be downloaded from link

Our CSS Only themes available for SharePoint on premises 2013, 2016 and SharePoint Online store all the settings in SharePoint property bags.

We have a graphical user interface to manage the properties per site collection, however there is no interface to backup or remove the properties from the site.

In this article we have detailed instructions to save a backup of your settings into an XML file, load the backup to the site collection and delete the property bags from the site collection.

To download the PowerShell scripts to manage the settings, click here.

Save CSS Only Settings

  • Extract the files from the zip file
  • Edit the SaveCSSThemeSettings.ps1
  • Edit the variables bellow the Variables definition comment
    • themeID – To get the themeID open the BindTuning site, go to your products and open the theme you are using. From the address bar copy the themeID e.g. http://bindtuning.com/account/downloads/theme/themeID
    • siteURL – Define the site collection URL e.g. https://contoso.sharepoint.com
  • If your system has multifactor authentication enabled uncomment the Connect-PnPOnline with the property -UseWebLogin
  • Save the PowerShell file and execute it
  • An xml file will be generated in the scripts folder

Load CSS Only Settings

  • Extract the files from the zip file
  • Edit the LoadCSSThemeSettings.ps1
  • Edit the variables bellow the Variables definition comment
    • themeID – To get the themeID open the BindTuning site, go to your products and open the theme you are using. From the address bar copy the themeID e.g. http://bindtuning.com/account/downloads/theme/themeID
    • siteURL – Define the site collection URL e.g. https://contoso.sharepoint.com/sites/new
  • If your system has multifactor authentication enabled uncomment the Connect-PnPOnline with the property -UseWebLogin
  • Save the PowerShell file and execute it

Remove CSS Only Settings

  • Extract the files from the zip file
  • Edit the RemoveCSSThemeSettings.ps1
  • Edit the variables bellow the Variables definition comment
    • themeID – To get the themeID open the BindTuning site, go to your products and open the theme you are using. From the address bar copy the themeID e.g. http://bindtuning.com/account/downloads/theme/themeID
    • siteURL – Define the site collection URL e.g. https://contoso.sharepoint.com/sites/new
  • If your system has multifactor authentication enabled uncomment the Connect-PnPOnline with the property -UseWebLogin
  • Save the PowerShell file and execute it
Have more questions? Submit a request

Comments

Got a question?

If you can't find the answer to your question, you can contact us.
We are here and happy to help.

Powered by Zendesk