Changing the CSS Style of a SharePoint Site

Changing the CSS Style of a SharePoint Site

Hello,

Here is a little script that allows you to change the Style Sheets (CSS) applied to your SharePoint Website.

        

        $mainurl = “http://vlad.test.loc”

$cssurl = $mainurl + “/Style%20Library/BMA/styles.css”

$web = Get-SPWeb $mainurl
$web.AlternateCssUrl = $cssurl
$web.AllProperties[“__InheritsAlternateCssUrl”] = $True
$web.Update()

Enjoy! And say Thanks if it helped 🙂

No ratings yet.

Please rate this

 
Comments

No comments yet.

Leave a Reply