Creating a SharePoint 2010 master page for a custom footer is very easy to do. Follow these simple steps to make a custom footer for your site.
For this exercise, we will be using a Publishing site. The difference between a Publishing site and a team site is the added layer of checking in/out files before publishing or previewing a live version. If you are not using a Publishing site, please disregard the related steps below.
- Copy Master Page
- Open site using SharePoint Designer 2010
- Click Master Pages in the left navigation pane
- Right click v4.master and select Copy, then paste
- Rename the New Master Page
- From the Ribbon, click Rename
- Type “Customfooter.master” (or any other name you choose)
- Edit the CSS Inline
- From the Ribbon, click Check Out
- Then, click Edit File
- Select Split View
- In code, find: <SharePoint:DeveloperDashboard runat=”server”/>.
- Add the following code just below the code listed above:
<div class=”s4-notdlg” style=”clear: both; background-color: #FEAD30; padding: 10px;”> ©Copyright XXXX 2013, All Rights Reserved </div> - Click Save. If prompted, click Yes to overwrite existing site definition.
- Apply Default Master Page
- Click Master Pages from left navigation pane
- Select the row for Customfooter.master (or whatever you named your new file), BUT NOT the title itself.
- From the Ribbon, click Set to Default.
- Then, click Check In.
- View Your Changes
- Click Save
- Open site in browser, or click Preview in Browser
how to create custom master page in sharepoint 2010 using visual studio
In this Article I will explain how to create and deploy master page using visual studio 2010.
I am created an Empty solution with name MasterPageTest as shown Below.
Now right click on the solution add new item Module as shown below
Now I am rename sample.txt as SampleMaster.Master.
After completing these steps.
Go to site setting->MasterPage->
Select the V4 master page Download a copy in to your system.
Copy that code and paste in to SampleMaster.Master.
In Element.xml we have to modify the code like this
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Module Name="TestExample" Url="_catalogs/masterpage">
<File Path="TestExample\SampleMaster.Master" Type="GhostableInLibrary" Url="TestExample/SampleMaster.Master" IgnoreIfAlreadyExists="TRUE" />
</Module>
</Elements>
I am adding the H1 tag DotNet SharePoint Site in my Master Page.
Deploy the Solution,After Deploying Successfully.
Go to site setting → Galleries->
We can able to see the Module name with Pending Status
Click on that Module name select Approved option Click ok
We have active two features,One is in Site Setting->Site Collection administration ->Site Collection features.
In Site Actions->Manage Site Features.
After Activating go to Look and Feel ->MasterPage
Select our master we deployed from VS2010
After Selecting master page at site master page and system master page Click ok .
Finally we can able to see my master page .
- See more at: http://www.dotnetsharepoint.com/2013/12/how-to-create-custom-master-page-in.html#sthash.dRm3jtU4.dpuf
How to apply custom master page and theme to all SharePoint 2010 sub sites?
How to apply custom master page and theme to all sub sites in SharePoint 2010?
1. Go to Site Actions | Site Settings
2. Click on Manage Site Features
3. Activate SharePoint Server Publishing
4. Go to Site Actions | Site Settings again and under Look and Feel click on Master Page
5. In Site Master Page click on the drop down and select your custom master page. If your not sure how to create custom master page, please see :http://virtualizesharepoint.com/category/sharepoint-2010-branding/
6. Put a check in Reset all subsites to inherit this site master page setting and click OK in the bottom of the page
No comments:
Post a Comment