How to deploy custom style changes to a bunch of master pages in SharePoint -


i'm working in sharepoint 2010 , wondering there way deploy single css change masterpage every child site in site collection? i'm using team site , i'm using v4.master.

i'm assuming subsites referencing single masterpage @ root of site collection.

i'm assuming since you're using ootb masterpage (v4.master), remains "untouched" , doesn't have custom css in it.

if correct far, you've got 3 options:

  1. relative css. can create custom css file , add reference in head of masterpage. change has made once , reflected on pages in sites, mean you'll need edit html in masterpage, wouldn't recommend if using 1 of ootb files such v4.master.

<sharepoint:cssregistration runat="server" name="custom.css" after="corev4.css" enablecsstheming="false">

  1. theme. create new site theme contains custom css file, assign site via site settings ui. doesn't require changes masterpage, themes not automatically applied new subsites when they're created. way automate through feature or feature receiver.

  2. alternate css. create own custom css file, upload site's style library folder , appoint alternate css. setting allows designer specify url css file loaded after default sp styles. alternate css setting inherited automatically child sites (by default), if don't have publishing features enabled can't set via site settings ui, you'll have through code or powershell script.

i hope helps.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -