Disabling Themes on Custom Master Pages 8

Ran into an interesting problem where I wanted my custom master page to NOT show my theme. I only wanted the theme to show on the _layouts pages and anywhere else not styled by my custom master page. You would think this would be as easy as simple removing this line from the master page:

The problem I ran into was even with this line removed, SharePoint would still show my theme on the custom master page after I applied it. Turns out SharePoint adds this line to your code:

8 thoughts on “Disabling Themes on Custom Master Pages

  1. Reply jesperated Sep 4,2008 3:31 pm

    I thought unghosted page means customized page (which is saved to the content db), ghosted page is an uncustomized page (which are the ones on the file system).

  2. Reply The Mossman Sep 4,2008 4:02 pm

    You are correct, I confused myself with the double negative NOT customized would be ghosted. Changing the post.

  3. Reply Ivan Sanders Sep 25,2008 1:19 pm

    The simple way to remove access to Themes is to remove them from SPTHEMES.XML file. However, please follow standard operating procedure and make as copy of the original file. You can find the SPTHEMES.XML in the C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions12TEMPLATELAYOUTS1033 folder assuming you have a default installation. I have included an example below of the reduced SPTHEMES.XML file, after making these changes you will need to perform an IISReset to read the SPTHEMES.XML file back into memory with the changes you made.



    Themes are a good starting point on the flexibility of customizing your SharePoint Portal for a more definitive look at branding be sure to check out Heather Solomon’s Blog @ http://www.heathersolomon.com/blog

  4. Reply The Mossman Sep 25,2008 1:38 pm

    Ivan, I’m not sure you got the point of the post. I do not want to remove the Theme from the SharePoint site. What I want is: sites with custom master pages to NOT show a Theme that is actually applied to the application (admin) pages of SharePoint.

  5. Reply Ivan Sanders Sep 28,2008 3:33 am

    This comment has been removed by the author.

  6. Reply Ivan Sanders Sep 28,2008 3:37 am

    My apologies, you are correct I read the post too quickly…

    I always Brand the Admin pages with the same look and feel as the portal. This gives the users with admin rights a consistent look and feel for the application…

    Also, I completely agree you on the use of features for eveything (Master Pages, CSS, lists, WorkFlow etc.) and packaging the features into a solution for deployment.




  7. Reply Anonymous Jan 16,2009 5:59 am

    Do you know the significance of the number 1011?

  8. Reply Diegoop Sep 25,2009 2:31 pm

    1011 is the internal code for the english language.

    Great post.


Leave a Reply