How/where can I find the template used for a SharePoint site or page.

I have a page I want to resemble, but I don't know where to find the template for that page and site?

  • I found a "solution" to my original problem. It turned out that the publishing feature had been turned on for that site and that gave the page layout wanted. Still the SharePoint Manager suggestion would be the best solution as far as I can see to the question – noesgard Sep 8 '09 at 10:37
  • For future readers, please see SharePoint for questions like this. – Michael Hampton Jun 29 '15 at 15:30

Once you view the page source and search for "var g_wsaSiteTemplateId" you will find a code, such as STS#0 or STS#1 etc... to find out what the template code means you can look at: https://absolute-sharepoint.com/2013/06/sharepoint-2013-site-template-id-list-for-powershell.html

  • FYI - although the mentioned command says "Site" it will give you the id of the "Web", which is likely what you want. I.E. not the id of the root site but of the subsite. – cpaloia Jan 12 '17 at 8:52

On Salaudeen Rajack`s blog www.sharepointdiary.com there is a tutorial with explained 6 ways to determine a SharePoint Site Template. The link can be found here.


  1. Use SharePoint Manager, Navigate through the site, and look for "Web Template".

  2. Stsadm: stsadm.exe -o enumallwebs -databasename > Template.txt Now, Open the template.txt file and check for template. This trick can be used to find site template name for SharePoint 2010 even.

  3. Sql Server: Sql server is the back-bone of SharePoint, So SELECT Title, WebTemplate FROM dbo.Webs WHERE Title='Your Site'

  4. You can use SharePoint Object Model find site template of a SharePoint site. Just query SPWeb.WebTemplateId.

  5. SharePoint 2010 - find template used create site: In SharePoint 2010, You can get the list of site templates by using a PowerShell Cmd-let: Get-SPWebTemplate . Examples for listing Web Templates:

    Get-SPWebTemplate -Identity SGS#0

    Get-SPWebTemplate -Identity S*

    Get-SPWebTemplate | ? { $_.Name -like "*STS*" }

  6. Go to the view source of the SharePoint page >> Search for "SiteTemplateID" to find site template name SharePoint 2010.

  • A link might break at any time. Please give at least as summary. – vonbrand Mar 19 '13 at 9:55

The easiest way is to get a tool like SharePoint Manager. Go into the site you are looking at, and find the WebTemplateId property. You can then match it up to a list of known template types.

There is another way to do it, but it is much more manual (and ugly) so I won't outline it here.

As far as a page template goes - this only works on pages within a Publishing site (in the Pages library...) but you should be able to look at the ContentType field in the Properties for a page in SPM. If you are looking at a pages library, you can even just add Content Type to the view directly within SharePoint and get the same information.


To get Name of the existing site template {Name of the Site Template} follow the below steps

  1. Save a Site as a Template.

  2. Go to Site settings –> sites & workspaces –> create.

  3. IE Tools > Developer Tools > Find > Select Element By Click > View > Source > DOM (Element) > Highlight and copy the section test . The one in bold will be your site template name.


For Pages

If you open the site in SharePoint Designer, then checkout the page you want for editing it will ask you if you want to edit the content (via the website) or edit the layout (via SharePoint designer)

Not sure what exactly you want to do by knowing the template for the site.

Re: Comments

Which do you want to open? A page or a site? These are different things.

To get the LAYOUT PAGE for any given SharePoint page, you need to find that page you are curious about in SharePoint designer. Double click it and when you do SPD will ask you if you want to edit the content (and if so, take you to the web browser interface) or if you want to edit the layout (if you have enough permission). If you edit the layout another copy of SPD is opened and the layout file is checked out. Look in the file window for the name of the layout.

  • I want to know the template, so I can create a page/site with the same template.... That's why I want to know – noesgard Sep 2 '09 at 6:03
  • besides I can't find the name of the template anywhere by opening in SharePoint Designer, any hints on where to find the missing link? – noesgard Sep 2 '09 at 6:09
  • This doesn't always work. I get an error saying the page layout can't be found (it's looking for at some old address that no longer exists but it still associated with the page somewhere). Isn't there somewhere where you can just see the name of the page layout? – xr280xr Sep 6 '11 at 19:14

It's an old thread. Still, it appears that we can simply look for the value of a javascript variable in the source code / script tab (firebug).

var g_wsaSiteTemplateId = ‘STS#1′;



Find the template name of SharePoint site using PowerShell

$web = Get-SPweb http://SiteUrl 
Write-host “Web Template:” $web.WebTemplate ” | Web Template ID:” $web.WebTemplateId 

Below is a list of the web templates and their IDs

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.