Create first a web application where we are made some modifications. Choose any name for it, and be sure that it works correctly. I created in my test environment http://master.Spdev.local:888 ( this is only a dev/test environment )
You don’t have to fill this page with any data or document; we only will change the style of this page.
SharePoint Designer is used for the management of SharePoint sites and lists, for creating and managing internal and external data sources, for creating views and forms to work with data, for creating workflows in order to represent business processes and finally SharePoint Designer is used for branding sites by customizing the look and feel.
SharePoint Designer 2010 can be downloaded for free from Microsoft while SharePoint Designer 2007 wasn’t free of charge at the release of SharePoint 2007 which changed during time. While SharePoint Designer 2007 offered you to edit SharePoint and non-SharePoint sites this has changed with the version published in 2010: With SharePoint Designer 2010 you can only edit SharePoint 2010 sites .
SharePoint Designer 2010 is available in a 32-bit and a 64-bit version. If you intend to use SharePoint Designer 2007 you must continue to use SharePoint Designer 2007. SharePoint Designer 2010 only connects to SharePoint 2010. If you want to install both versions side-by-side, you must download the 32-bit version of SharePoint Designer 2010, and install it after installing SharePoint Designer 2007.
One important complaint with the 2007 version was the quit difficult lockdown of SharePoint Designer 2007 which has changed with SharePoint Designer 2010: You can now easily manage the capabilities at the web application or site collection level.
Here are the downloads including Service Pack 1:
The first step in this process of course, is to get it installed. To do so, I am starting from the first site I have created in my new environment.
Once done, selecting the Download button goes out and fetches the right download, and prompts me to run and/or save it.
Once it’s up and running, the installer will extract the files, and then move on.
You have the usual EULA; agree and continue
Once accepted, you really cannot miss what is needed on the next screen. Microsoft made sure of that.
However, you can customize your installation by clicking on the Customize button, setting a new installation directory, setting your user information, and adding or removing features from the install. With the default installation, it’s a fairly hefty installation at 1.03G, but, I have a feeling it will be well worth it…
The installation begins (of course after you have clicked the Install Now button. And that’s it. You’re done!
Where can you set the master page / page layouts if you create a Team Site / non publishing site collection? Well, Microsoft obviously knew that people would want to use the publishing features with the non-publishing enabled site collections, so this is an example of where the feature framework really works well. To resolve the “problem” simply complete the following steps:
Enable on site collection level
Enable on a site level
Once this has been completed, you can again access the master pages and page layouts via site settings as you would normally do for a publishing portal.
SharePoint 2010 comes with three out-of-box Master Pages – v4.master (the default SP2010 design), minimal.master and default.master (for backwards compability with SharePoint 2007). In this tutorial we will create a new masterpage using the v4.master as a template and then connect the newly created custom Master Page to our site. It is a good idea to leave the default Master Pages untouched (at least for the examples in this post).
First we need to clone the v4.master file. Open SharePoint Designer 2010, and from the Sites tab select the Open Site icon and enter your site URL.
Now using the newly created master page we are now ready to make the modifications. Users of your SharePoint site will not notice that we are changing anything, and if you will break something – you will break custom master page, not the one users are seeing.
Next we need a CSS file which overrides the default core4.css style definitions. To see some changes to our customizations, we will include the fixed width style for our new master page.
Open SharePoint Designer 2010, select All files from the left menu and then enter the Style library.
To create a new css file, right click on the Style Library and select New > CSS from menu.
Name this file myCustom.css, just to keep the naming schema consistent with our custom Master Page.
Right click the newly created .css file and select the Edit file in Advanced Mode option.
Now enter some code in the css file. One thing we will do in this tutorial is to render the SharePoint site with a fixed width of 1024 pixels (making a site fixed width is actually a very difficult task using just SharePoint 2010). Additionally, we will also change the ribbon background color and the site background color.
Enter the following code in your css file:
#s4-bodyContainer {
width: 1024px !important;
margin-left:auto;
margin-right:auto;
}
body #s4-ribbonrow {
background-color:#865102;
body.v4master {
overflow: visible;
background-color:black;
.ms-cui-ribbonTopBars {
.ms-cui-ribbonTopBars > div {
border-bottom:1px solid transparent !important;
We now have a custom CSS in the Style Library and a custom Master Page and we now need to associate the css file with the custom Master Page.
Open the myCustom.master file with SharePoint Designer (in advanced editing mode). You will see the site preview, because by default it will open your Master Page on the Design tab.
Click the Code tab on the bottom of the editor. You will see the entire Master Page code and content, with many placeholders, Server Ribbon code etc. Fortunately, you don’t have to learn all of these to do some serious branding and modification.
First, we need to connect our Master Page with the css file. Within the <head> tag, we need to add a link to our custom CSS file:
<link href=”/Style%20Library/myCustom.css” rel=”stylesheet” type=”text/css” />
Now we need to modify the s4-workspace area so it will read our css file properly:
Find the line:
<div id=”s4-workspace”>
and replace it with:
<DIV id=”s4-workspace” class=”s4-nosetwidth”>
This would add the class attribute to s4-workspace tag. Without this, our fixed size setting in CSS file will be overridden by the default inline CSS.
Now we can test our Master Page, before we link it to our production site. The best way is to create a new test page from the selected Master Page. Go back to the Master Pages item in the left menu, and right-click our myCustom.master file, then select the New from Master Page option.
After a while new page will be created and the SharePoint Designer will open it for editing (in code view). Click the Preview icon on the ribbon to see your changes.
Now, if we have ensured that the newly created Master Page looks fine we can connect it with our live production SharePoint site.
Open SharePoint Designer 2010, navigate to the Master Pages option in the left menu, right click the myCustom.master file and select Set as default Master Page.
Now, if you go to your main site (in my SP farm it’s http://master.spdev.local:888/) you should see the changed layout
Richard Mueller edited Revision 16. Comment: Fix zero in <a name> tag in HTML so TOC works properly
Ed Price - MSFT edited Revision 14. Comment: We're no longer using "(en-US)" in the title, but please still include the "en-US" tag! Thanks!
Arun Kumar Arora edited Revision 12. Comment: Changed formatting
Gokan Ozcifci edited Revision 9. Comment: New title
Gokhan Ozcifci edited Revision 7. Comment: New Accounts
Craig Lussier edited Revision 6. Comment: added en-US to tags and title
Gokhan Ozcifci edited Revision 5. Comment: Grammatical Errors
Gokhan Ozcifci edited Revision 2. Comment: Privacy
Ed Price - MSFT edited Revision 1. Comment: Title casing and TOC and tags. Headers and spacing.
very good intro for beginners
Excellent article.
Very Nice article for beginners