How do I edit my theme's .css file?

In some scenarios, it may be helpful to perform some adjustments to your Classic theme's .css file, accommodating for any needed adjustment.
This being the case, and for small theme adjustments, you're able to modify your theme package so as to achieve the required result.
Due to BindTuning's Design (themes) subscription offering unlimited customizations and downloads, it is recommended to generate a new theme, if you're looking into changing its corresponding look-and-feel. 
Info: SharePoint Designer is required in order to accomplish the steps described in this article. If you need to download it please follow this link .

To edit your theme's .css file, proceed as follows:

For Sandbox Solutions (Office 365 - Classic Experience and SP2013/SP2016/SP2019)

  1. Open your site with SharePoint Designer;
  2. Go to All Files > Style Library > THEMENAME;
  3. Check out and edit in advanced mode file THEMENAME.css;
  4. Add your custom code to the bottom of the file;
  5. Save, check in and if asked, publish a major version;
  6. Refresh your browser using CTRL + F5.

For SP2013 Farm Solution

  1. Go to: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\TEMPLATE\LAYOUTS\1033\STYLES\THEMENAMEPackage\THEMENAMEPackage\THEMENAME.css
  2. Add your custom code to the bottom of the file;
  3. Save;
  4. Refresh your browser using CTRL + F5;
  5. If changes are not immediately visible, reset your IIS.

For SP2016 Farm Solution

  1. Go to: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\TEMPLATE\LAYOUTS\1033\STYLES\THEMENAMEPackage\THEMENAMEPackage\THEMENAME.css
  2. Add your custom code to the bottom of the file;
  3. Save;
  4. Refresh your browser using CTRL + F5;
  5. If changes are not immediately visible, reset your IIS.

For SP2019 (Classic Experience) Farm Solution

  1. Go to: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\TEMPLATE\LAYOUTS\1033\STYLES\THEMENAMEPackage\THEMENAMEPackage\THEMENAME.css
  2. Add your custom code to the bottom of the file;
  3. Save;
  4. Refresh your browser using CTRL + F5;
  5. If changes are not immediately visible, reset your IIS.

Note: If you're looking into adding custom styles on your Modern SharePoint pages, refer to this article.

Have more questions? Submit a request

Comments

  • Avatar
    Paul Truland

    where in the .css file do i change the diagonal background color for the ignite theme?

  • Avatar
    Sam Packer

    I have this exact same question. How do you edit the colors in the .css file for the ignite theme??

  • Avatar
    David Ramalho

    On the next article, you have the location of the file. To edit the CSS of the theme, you need to inspect the element that you want to change, usually in the explorer of the browser, locate the CSS you want to replace in this theme, and them change it.

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