Thursday, 18 April 2013

SharePoint 2010 - CSS & JS Across Multiple Web Applications

An issue I came across the other day involved creating a web application with the look & feel as another web application on the SharePoint 2010 Farm.

I decided to link all the CSS from the second Web Application to the first Web Application, which works fine for the majority of functions (background, colours, images, page width, etc).

Here's what was failing for me, and the only workaround was to make a copy of the CSS on both Web Applications:

  • Certain JQuery & Javascript files failed to render
  • Custom Markup Styles in the Ribbon failed to appear
Moral of the story, Don't point Master pages to another Web Applications CSS & JS files.  Make a copy of them on each Web App

No comments:

Post a Comment