Home > SharePoint, SharePoint 2010, SharePoint 2013, SharePoint Online > SharePoint: How to check which Site Template was used to create a site just using a web browser

SharePoint: How to check which Site Template was used to create a site just using a web browser

I recently needed to check which site template was used to create a site on a production system so I did not have the option to use SharePoint Manager or write some code or PowerShell to open the site and check the site template.

A quick search revealed lots of methods to find this out but they all required that I actually log on to the SharePoint Servers. I needed to find out the site template just using the browser.

I came across a discussion thread where this question was asked and one respondent came up with the answer. You might think there is an application page in the _layouts virtual folder that will provide this information, but no.

The solution is simply to browse to any page on the site, view the source HTML of the page, then search for “SiteTemplateID” where you will be taken straight to a line of JavaScript embedded into the page such as the following where the site template ID including configuration is assigned to a JavaScript variable:

var g_wsaSiteTemplateId = ‘STS#1’;

I am sure I saw this when inspecting the HTML of pages several times in the past but I didn’t think about this when I needed it.

Nice and easy when you know how :-)

  1. Khushi
    September 18, 2013 at 15:15

    Thanks Nick for posting this. I also saw HTML ten thousands time but didn’t really notice.


  2. November 17, 2013 at 17:51

    Thanks for the help. Just found out the variable is not in the source unless the publishing infrastructure is activated on Site and Site Collection.

  3. Sam Bluetooth
    November 26, 2013 at 01:07

    Nick!!… You are awesome man!

  4. July 21, 2014 at 18:45

    Thank you. Looked all over the place for a quick way to find the SiteTemplateID in SP2010.

  5. gautam
    January 16, 2015 at 12:33

    Thank you

  6. February 10, 2015 at 21:10

    This is brilliant! Thanks for posting! It worked for me just now checking pages on a team site (STS#0) and on a Records Center site (OFFILE#1) on SharePoint 2010. This is going in my test plan for verifying a Records Center is set up correctly.

  7. March 7, 2015 at 05:02

    I afraid this only tells you what the original SharePoint template was. If you have modified and saved the template under your own name it will only show the original original SharePoint template name

  8. March 17, 2015 at 12:48

    I also found Team Site(STS#0)……I think SharePoint apps cannot be deployed here.

  9. Anonymous
    July 21, 2015 at 07:30

    Thanks this was useful, you can use this site to see what the codes are: http://www.funwithsharepoint.com/sharepoint-2013-site-templates-codes-for-powershell/

  10. Mike Scott
    September 8, 2015 at 10:03

    What a great idea! Nice one Nick.

  11. Med
    June 23, 2016 at 19:50

    Is there a way to convert a site from a team site to a publishing site?

    • June 23, 2016 at 20:02

      No, you cannot convert a team site to a publishing site as you cannot change which site definition was used to create a site.
      However you could enable the Publishing features in the Team Site to gain this functionality but it will not be the same as a brand new publishing site.

  12. PCD
    January 16, 2018 at 12:45

    Nice thanks for the tips.

  1. July 16, 2014 at 13:49
  2. December 31, 2014 at 20:11
  3. December 3, 2015 at 14:43

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: