Questions tagged [master-page]

The master page is a feature that enables you to define common structure and interface markup elements for your Web site, including headers, footers, style definitions, or navigation bars. The master page can be shared by any of the pages in your Web site, called the Content Page, and removes need to duplicate code for shared elements.

Filter by
Sorted by
Tagged with
54 votes
7 answers
31k views

How to update custom master page and page layout, which is already deployed

I have a feature which deploying custom page layout. It's done by this code: <Module Name="MasterPageModule" Url ="_catalogs/masterpage"> <File Path="MasterPageModule\defaultTemplate.aspx" ...
Michal's user avatar
  • 863
18 votes
3 answers
38k views

Adding jQuery to master page

I am trying to customize a Sharepoint 2013 team site. I created a copy of seattle.master and set it as default master page via context menu. I added my custom CSS within head tages like so: <...
Juergen Riemer's user avatar
13 votes
1 answer
38k views

How do I get a subsite to inherit the main masterpage?

I have a masterpage (copy of v4.master) and I added a link to a custom css. when I create a new site it does not pick up the correct master page. How do I fix this? thanks
Jjp's user avatar
  • 255
11 votes
6 answers
41k views

How to use relative URL for image in Master Page?

I am using a logo in my Master Page which will be displayed on all pages. How do I use its relative URL? Currently it is written as: <img src="/sites/Style Library/Images/logo.jpg"> But it is ...
Frank Martin's user avatar
  • 3,636
10 votes
2 answers
4k views

IM Presence Icons not appearing in SOME master pages - IE9

I have updated my master pages to use some HTML5 and CSS3 elements. I therefore changed the to use HTML5, and altered the X-UA-COMPATIBLE to work in "IE=9;IE=Edge;" mode (instead of IE8). I did not ...
Matt's user avatar
  • 1,424
7 votes
7 answers
8k views

What is the proper way to add jQuery to a MasterPage?

Currently I am using this method in the header: <script src="/_layouts/MNCAssets/scripts/jquery-1.5.1.min.js"></script> But for some reason, my webparts that use jQuery don't appear to ...
Abe Miessler's user avatar
  • 6,735
1 vote
1 answer
3k views

Unable to reference jQuery inside my master page

I am working with SharePoint server 2013, and inside my Style Library folder I have added the Jquery file. then under the custmJSUrl section inside my seatle.master page, I added a reference to the ...
John John's user avatar
0 votes
6 answers
12k views

How to change the tab name in SharePoint

Problem: I'm having trouble figuring out how to change the name of the web browser tab in SharePoint. I'm trying to have the tab display "CompanyName - Page Title" Right now the site is ...
Jacob Caldwell's user avatar
10 votes
8 answers
6k views

How can we use a different masterpage for annoymous and authenticated users?

Is there a way to load a different master page if I can identify the user to be annonymous?
Sleeper Smith's user avatar
8 votes
3 answers
21k views

"Master Page" option from site look and feel is missing

I knew from previous experience that many SharePoint sites had a section under Site Settings > Look and Feel labeled "Master Page"... however I could not find this section. There were tutorials ...
user avatar
8 votes
4 answers
13k views

Can I use the same master page between Site Collections?

I've created a root site collection from the Publishing site collection template and am using a custom master page to style the site. If I create another site collection how am I able to use the same ...
Sambo's user avatar
  • 385
3 votes
1 answer
1k views

SitePages uses System Master Page

Bit of a strange issue today. I wasn't involved in the initial branding/master pages etc of my companie's SP Environment. Anyways, I have a strange issue. On my site, I have some pages storted under ...
Fox's user avatar
  • 2,676
3 votes
6 answers
12k views

How to display drop down menu (top navigation) - trying for many days now

I am trying to display top navigation as drop down menu just like you see in theme "seattle". I created my own theme, then I went to "Design Manager" and then I went to "Snippets". I copied the ...
Frank Martin's user avatar
  • 3,636
3 votes
3 answers
4k views

How can I enable JavaScript on every page at a site level?

I'm using SharePoint 2007 and I would like to add the JS code for Google Analytics into the master page. I think a Delegate Control is the way to go, as we already have a Delegate Control in the Head ...
Ronak's user avatar
  • 359
2 votes
2 answers
2k views

Apply CSS to Site Collection and all subsites using PowerShell in SharePoint 2013

I am holding responsive CSS file. And I would like it to apply my CSS file for my site collection and its subsites, so that lists and document libraries also get responsive. Can anyone help me in ...
MSA's user avatar
  • 1,155
2 votes
2 answers
5k views

SharePoint online refer custom css and javascript in MasterPage (Site Assets)

How to add references to css and js files in HTML master pages. The files are residing in SharePoint libraries.
Amal Hashim's user avatar
  • 28.3k
1 vote
1 answer
516 views

Developing SharePoint Online master pages

Here's the main question: what is the best practices for designing custom master pages on SharePoint Online? Here's some background info: I've been designing and developing SharePoint master pages on ...
Jennifer Bartolome's user avatar
1 vote
1 answer
3k views

How to tell where a masterpage is used in a site collection?

Is there a way, within a site collection, to see all the pages that use a particular masterpage? I have several masterpages and can't remember which ones are used where.
bgmCoder's user avatar
  • 3,551
1 vote
3 answers
1k views

Best approach to use new .ico image for my sharepoint online site collections without the need to modify the seatle.master

I am working on an office 365 sharepoint online 2013. and inside the web application i have 2 site collections; Team site collection & Enterprise Wiki site collection. now i need to update their ...
John John's user avatar
1 vote
2 answers
4k views

Add css to masterpage (SharePoint Online/Office 365)

I have a css to hide list search box on document libraries. It's in the SiteAssets library. I can edit a document library view and add Content Editor webpart and add css reference and able to hide. ...
Branda Oillers's user avatar
1 vote
6 answers
13k views

Referncing a JavaScript file inside my master page will not fire

I have added the following to my seatle.master page inside my SharePoint server 2013 :- <SharePoint:ScriptLink language="javascript" name="custom.js" OnDemand="true" runat="server" Localizable="...
John John's user avatar
12 votes
2 answers
32k views

CSS and master page - Sharepoint online - Office 365

I created a custom .css file and dumped it in /Style Library/custom/corev15.css I just created the 'custom' folder and created a duplicate of the original (/_layouts/15/1033/styles/Themable/corev15....
gpapas's user avatar
  • 135
10 votes
4 answers
7k views

SharePoint 2010 branding - I see it (as site admin) but rest users don't

Our web developer helped me customize our SharePoint 2010 web application (few images and colors). Very basic. He made changes to the master page and I selected that master page and applied it to ...
user4747's user avatar
  • 219
9 votes
3 answers
5k views

Change masterpage from Seattle to Oslo using CSOM, Sharepoint online

Using CSOM and c#, I would like to change the master-page from Seattle to Oslo. Can anybody help me?
Jacob Filtenborg's user avatar
8 votes
2 answers
260 views

How to add scripts to a site collection without modifying the masterpage

Our company has restricted any modifications to 2013 SharePoint masterpages. For the most part I have been using layout pages to add scripts however if a site is not a publishing site, I am looking ...
CSM's user avatar
  • 83
7 votes
3 answers
16k views

SP2013: Adding a custom usercontrol to masterpage using Design Manager

I created a custom masterpage using the SP2013 Design Manager. I also created a SharePoint solution in Visual studio 2012 with a custom usercontrol (ascx) and custom webparts. The masterpage works ...
Wout's user avatar
  • 1,605
5 votes
1 answer
14k views

Placing the search box in the header

I am working with a company that has supplied the branding I am using to create my master page. I have successfully imported and converted this with most of my content appearing in the <div ...
westerdaled's user avatar
4 votes
3 answers
6k views

Create a custom master page for a new site collection by copy/paste existing seatle.master

I want to create a custom master page for my site collection. So I am planning to do the following steps:- Using sharepoint designer, to copy exsisitng seatle.master page, and then paste it. Rename ...
John John's user avatar
4 votes
1 answer
673 views

Masterpage conversion - causing javascript errors/masterpage breaks? when server name and internet url are different

JavaScript stops working and Masterpage seems to lose all styles. There are 3 places where a converted .html Masterpage references the original URL/Domain the site was created in. <mso:...
Mia's user avatar
  • 163
4 votes
2 answers
20k views

How to edit a sharepoint master page without using sharepoint designer?

I have a masterpage that resides on a sharepoint server, on the server designer is not installed. Basically I want to be able to edit a master page in notepad. Is this possible?
user879's user avatar
  • 1,066
4 votes
3 answers
6k views

Activating Publishing Feature breaks because of custom Master?

This issue is related to this post. I get an error message when the publishing feature is activated on sites of certain types. This means that I also get an error message when I create certain sites ...
tarjeieo's user avatar
  • 2,538
3 votes
3 answers
7k views

SP2010 Reset all subsites to inherit masterpage using c#

I'm creating a site feature reciever which sets a custom master page on the root web. I would also like the master page set on the root to be inherit to all the subsites. What is the most elegant way ...
user avatar
3 votes
4 answers
10k views

Loading jQuery in the Correct order

I wish to use a jQuery plugin in SharePoint. Currentley I have jQuery added to each page via a custom master page. <script src="/Style Library/js/jquery-1.6.4.min.js" type="text/javascript"><...
John's user avatar
  • 3,773
3 votes
2 answers
219 views

Top Naviation Menu is not loaded when script runs - SharePoint Foundation 2013 Oslo Master Page

I am trying to find the Top Navigation menu elements that are in the top part of my master page. So at the bottom of my master page I have added a script to fine the element on the page as follows: ...
George M Ceaser Jr's user avatar
3 votes
3 answers
8k views

SharePoint 2013: Responsive Master page

I have been given an assignment to create a Responsive Master Page for SharePoint 2013. I've been researching for few days and found out that we can achieve it using: Media Queries Device channel ...
vikbehal's user avatar
  • 240
3 votes
2 answers
6k views

Custom composed look do not appear in "change the look"

I've got: - custom master page - custom color palette - custom font schema - and made a preview file --> deployed to farm In the "composed look" list everything looks right. But when I go to "...
Plexus81's user avatar
  • 2,250
3 votes
4 answers
22k views

SharePoint 2013 Fixed-Width Master or Fixed-Width Page-Layout or both?

I'm planning a Site and I know the default landing page needs to be a fixed width. I've also seen the awful things fixed-width does to Lists and Libraries (A List with too many columns looks ...
user10711's user avatar
  • 169
3 votes
1 answer
2k views

Add Vertical Scroll in IE9

I'm re-branding an Intranet publishing site for SharePoint 2013 using VS2012 - I'm creating project as a Feature and deploying the .wsp file locally. Using IE9, short pages have no vertical scroll ...
IrishChieftain's user avatar
3 votes
2 answers
8k views

How to apply custom site layout on my Team Site?

Please take a look at the following screenshot of my team site. I want to apply custom site layout on this team site. I opened the site in SharePoint Designer and made of copy of seattle.master and ...
Frank Martin's user avatar
  • 3,636
2 votes
1 answer
5k views

CSS Class for page title

SharePoint 2013 I need to edit a master page so that when the title of the page is displayed the font size is smaller than the default. Can someone give me the code?
Mike Blair's user avatar
2 votes
3 answers
5k views

Files deployed in module cannot be found

I'm trying to deploy a selection of pages and master pages in modules but I'm encountering the same problem with all of them. When I try to navigate to a page, I get a File Not Found error (with ...
Mourndark's user avatar
  • 342
2 votes
1 answer
2k views

How to change the Top Bar tab titles

I have a requirement to change the Top bar titles for my team site and community site. For example I need to change the “Page” to be “Page options”.so from where I can change these titles.? Second ...
John John's user avatar
2 votes
1 answer
4k views

How to add a custom web part to a master page using SharePoint Designer?

I want to add my custom web part in master page using SharePoint Designer. I tried but I am receiving the error shown below. And this is the description of error. ExecuteRequestInSandBox call ...
Madhav's user avatar
  • 1,494
2 votes
3 answers
1k views

Can a web part prevent master page jQuery from executing properly?

I'm including jQuery and a custom .js file into the master page of my SharePoint 2010 site. In the $(document).ready() function, I'm setting a live event handler on an element in the header of the ...
CMPalmer's user avatar
  • 153
2 votes
2 answers
3k views

How to assign masterpage via CSOM?

I have the following code to assign masterpage via CSOM but its not working, after I go to the site, it says File not Found, I guess URL is wrongly constructed. Please note that I am not trying to ...
Luis Valencia's user avatar
2 votes
1 answer
940 views

How to configure two search boxes - one for people and one for content?

I would like to have two search boxes on my master page, one that would search for content and the other one that would search for people. I see the code in the master page that searches for content: ...
user avatar
2 votes
2 answers
1k views

Method for adding a Watermark Logo/Text to bottom of each Sharepoint page

I'm currently trying to add a Watermark Logo or text to the bottom of every Sharepoint site/Subsite. Can anyone recommend an effective way to do so? I've tried various incarnations of CSS using the ...
cod3r_jim's user avatar
  • 307
2 votes
2 answers
2k views

Add script reference to all pages in a site collection when a feature is activated

I'd like to have a feature which adds a script reference to all pages in a site collection when activated. This seems like a scenario where I should just modify the master page, but for it to affect ...
Jeff's user avatar
  • 105
2 votes
5 answers
25k views

How to change the master page associated to a custom page layout?

I'm creating a custom page layout starting from the Article Page layout, which is associated by default to the master page v4.master. I want now associate this web page with a custom master page of my ...
Emiliano Poggi's user avatar
1 vote
2 answers
2k views

Hard Coded Navigation in Master Page - Active link not changing

Prior to my arrival it was decided that all navigation would be hard coded into the Master Page. I wish I could find a solid reason why, but for the time being it escapes me. Due to time constraints, ...
Jason's user avatar
  • 583