Friday, 18 March 2011

SharePoint 2010 Branding / Customisation

I will show you how to do some basic customisation on a SharePoint 2010 Publishing site, and then to make a few tweaks on the "CSS" file on the SharePoint page.

I have created a simple Sharepoint 2010 Publishing site and have used SharePoint Designer 2010 to edit the Master Page and create a simple Top banner and make a slight change on the Quick launch menu, adding some simple image and links on the left side.I will detail this out over here so that you can start experimenting.
Primiarily i used Sharepoint 2010 Designer for this and its freely downloadable as you know :

Lets go step by step :

Step 1
Once you created a site with the "Publishing Template" you can also verify your Master Page by going to the SP 2010 site and Go to Site Action > Site Settings > Look and Feel > Master PageHere you can see SP 2010 by default use "Nightandday.master" page as the default Master Page.

Step 2
The Css file associated with this Master page is "nightandday.css" This resides in the Sitecollection Level Click on "All Files" in the SPDesigner > Style Library > en-US > Themable > Core Styles > Nightandday.css

Step 3
Open the site in SharePoint Designer On the left menu of the SP Designer you can see all the contents which exist on the Site You can click on the "Master Pages" which would open you and show all the master pages which exist on the site.
(You can also Click on "All files" > _catalogs > MasterPage for the same task)

Step 4
Since i have used the "SharePoint 2010" Publishing layout the deafult master page is
"NIghtandday.master", Righclick make a copy of that and rename it to "MyCustom.Master"

Step 5
By editing the css file you will be able to make all necessary changes which will be reflected on the Master Page.  Make a copy of the Css file and change it to "MyCustomCss.css" file

Step 6
All the images associated with this template lies in :Root Site > Style Library > Images folder

Step 7
There is an entry ".nightand day.ribbonbackground" property and if you change the "background-image:url " you can customise the topbanner image. Make sure you are uploading the topbanner image to the appropriate "Image library" as said in step 6

Step 8
You can also tweak a bit on the ".ms-quicklaunch" properties if you want to make changes in the quick launch menu

Step 9
Once you have made necessary changes in the css file you can edit the "MyCustom.master" master page and update the link to the CSS file.

Step 10
Go to SiteSettings > Master Page > and set the appropriate Master Page in the "Site Master Page " and "System Master Page" option, also set the New Css file.
That's it !!!

Now if you go to your Sharepoint 2010 site you can see the topbanner and the changes you made on the Css files will be reflected.

There you go ........... This is how  the Customised SharePoint 2010 Site looks.....

No comments:

SharePoint Template Sites

  SharePoint look book Get inspired Discover the modern experiences you can build with SharePoint in Microsoft 365 https://lookbook.microsof...