Manage CSS Only theme Settings

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

BindTuning's CSS-Only themes are available for Classic sites and/or pages inside SharePoint On-Premises 2013, 2016, 2019, and SharePoint Online, where all the corresponding settings are stored 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 follow the steps below:
      • Log in to your BindTuning account; 
      • Navigate to the Design tab; 

        design-tab.png

      • Select the My themes section; 

        my-themes.PNG

      • Mouse over your CSS-Only theme and select More Details

        more-details.PNG

      • From the address bar copy the themeID (i.e, https://app.bindtuning.com/design/mythemes/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;
  • After setting all the above mentioned variables, your PowerShell script should be similar to:

    ps-script.png

  • 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 follow the steps below:
        • Log in to your BindTuning account; 
        • Navigate to the Design tab; 
        • Select the My themes section; 
        • Mouse over your CSS-Only theme and select More Details
        • From the address bar copy the themeID (i.e, https://app.bindtuning.com/design/mythemes/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 follow the steps below:
      • Log in to your BindTuning account; 
      • Navigate to the Design tab; 
      • Select the My themes section; 
      • Mouse over your CSS-Only theme and select More Details
      • From the address bar copy the themeID (i.e, https://app.bindtuning.com/design/mythemes/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.
Have more questions? Submit a request

Comments

  • Avatar
    Максим Андреевич Кекишев

    There is no ThemeID an address bar.

BindTuning logo
Copyright Ⓒ 2021 Bind.
All rights reserved.
Privacy Policy
Cookie Policy
BindTuning
              Linkedin BindTuning Twitter BindTuning YouTube BindTuning Instagram BindTuning
              Facebook
Powered by Zendesk