Tutorial – Working with Master Pages Part One
Over the past few weeks, I have had many requests to “de-code” the starter master page, and also stop SharePoint Designer putting the fear of Geek into every one. So I have put together this step by step guide and added the links to other Branding Blog posts by other people all together in one spot. I know the content of this post overlaps my content area – it has to do with my code links – will fix asap.
So in Part One – we are going to get our site ready, by creating the site, adding the folders and files we need, setting up the custom style sheet and setting that page logo.
Index:
1. Links
2. Creating Our Team Site
3. Getting Ready – Getting All Our Ducks In A Folder
4. Setting up the Master Page: CSS and Logo
Links:
Branding for Beginners : Written by Matthew Hughes
For me this is the be all and end all of Branding posts (series). Matthew has covered everything, and if you work your way through this series, by the end of it – you will have a good feel for SharePoint Designer 2010 and branding SharePoint in general.
Starter Master Pages – by Randy Drisgill
If you are branding Sp2010, you always start with on of these pages. This, in my opinion, one of the greatest contributions to the SharePoint 2010 community. In Matthews series, and this post – you will be asked to go get this pack, so download it now.
Create Our Team Site
1. Go to Application Management
|
2. Create the Site
|
![]() |
3. Set the administrators
|
|
| And we are ready to go. Click the site link in the “Top Level Site Successfully Created” window to go to your new site (it opens in a new tab), and then click OK. My sites URL is http://louise-pc/sites/MPTutorial, yours should be similar. |
| And your new site should be the stock standard vanilla Team Site (as below) |
![]() |
Getting All Our Ducks In A FolderPlease make sure you have SharePoint Designer 2010 Installed, and you have downloaded and extracted Randy Drisgill’s Starter Page Pack. We are going to add in the different files and folders that we will be working with now via Designer. So lets begin:
|
SharePoint Designer will open, and open up our site. You will settle on the MPTutorial Properties page. From here, I want us to get our starter page in.
|
|
|
|
|
Setting up the Master Page: CSS and Logo |
|
SharePoint:CssRegistration name=”/Style Library/sitename/style.css” After=”corev4.css” runat=”server”
SharePoint:CssRegistration name=”" After=”corev4.css” runat=”server”
|
|
|
|
|
On Monday – in Part 2 – We will work with the Header bar (Site Logo, Search and the Top Navigation) |















Hello,
Nice blog; I have to put a logo on a corporate website;
Q1: is this the easiest way to do this?? Other blogs talk about editing CSS files and the masterpages with SPD
Q2: has the logo a fixed size?? (can I move it?)
Q3: why should this be edited:
SharePoint:CssRegistration name=”/Style Library/sitename/style.css” After=”corev4.css” runat=”server” ??
(by this code:SharePoint:CssRegistration name=”” After=”corev4.css” runat=”server”)
Thx in advance
Rgds,
Khyran Herklots
HI Khyran
A1: There is no “easy” way to manipulate the master page. I use SPD for everything, css, master page, page layouts etc – and where needed I then port across to a wsp in vistual studio. If you just want something different you can always apply a theme – which just controls the colours and fonts.
A2: the logo is not fixed in any way – the size (if you use site settings > look and feel) will be determined by the image you upload – and you can place the SPlogo tags anywhere you like on the master page
A3: you edit this to point to your css where ever it may be located.
hope this helps! grab me on twitter if you need more help