Editing Core.css
Hi guys on my sharepoint 2007 site, i am trying to make changes to the ms-pagetitle area in core.css but when i make the changes to the selected style they dont publish on live verision? am i missing somthing i cannot find a publish button or anything. cheers, Ant.
November 1st, 2010 8:47am

I know this doesn't answer your question directly, you are not allowed to directly make changes to sharepoint files (anything under 12 hive, 14 for sharepoint 2010) I'm not a branding expert but the best way to make changes to those classes defined in core.CSS is to override them in your own custom CSS (call it spoverrides or something like that) and reference it in your custom master page Deploy all artifacts as featureMicrosoft Certified Master | SharePoint 2007 Blog
Free Windows Admin Tool Kit Click here and download it now
November 1st, 2010 9:32am

Yeah as Ram said you should override the CSS classes in your custom CSS file. But when you add it in Master page use CssRegistration control this will render updated CSS file on every page load becuase this control add extra reference parameter the the end of the link which force browser to load new file everytime. <SharePoint:CssRegistration name="<% $SPUrl:~SiteCollection/Style Library/CustomCore.css%>" runat="server"/> Regards, Sandip Patil, .Net,Sharepoint Developer worldofsharepoint.com
November 1st, 2010 9:48am

hello it is not necessary to modify neither core.css nor master page file. There is OTB functionality for this. You need to create your own css file, upload it into style library of your site and specify this file as alternate css file. In order to do it go to Site settings > Master page > Specify a CSS file to be used by this publishing site and all sites that inherit from it. Sharepoint will add this file as last css in your page so it will have top priority and will override all css styles defined above. Blog - http://sadomovalex.blogspot.com CAML via C# - http://camlex.codeplex.com Graphs visualization in Sharepoint - http://spgraphviz.codeplex.com
Free Windows Admin Tool Kit Click here and download it now
November 1st, 2010 10:28am

Are you using any particular theme for your site other than Default theme.If so you shoul have a _theme folder when you open the site in Designer. in the folder you shoild find out one css starting with your theme name + some number for example if your theme is Granite some thing similar to Gran1011-65001.css will be there make your changes thereDestin - MCTS SharePoint Application Development 2010,2007
November 2nd, 2010 4:55am

Hi, I have a try to figure out why your custom styles are not appearing in your site. Here is a general breakdown of how styles are pulled into a rendered SharePoint page in regards to master pages: If your master page links to a custom CSS file, the CSS file will get pulled BEFORE CORE.CSS. If your master page links to a CSS file, and CORE.CSS has been unghosted for the site, the custom CSS file will get pulled AFTER CORE.CSS. If you specify a custom CSS file in the Master Page settings (Site Actions/Site Settings/Master Page), the custom CSS file will get pulled AFTER CORE.CSS. Note: CSS overrides and new styles will also be applied to _layouts pages. Any styles listed or linked to in the PlaceHolderAdditionalPageHead ASP content placeholder will get pulled AFTER CORE.CSS. Problem with this approach is you will have to list your styles or link to your custom style sheet in every page layout file you create. Styles listed in the master page file (not linked to, actually listed out in a set of STYLE tags beneath the links to CSS files) will be called AFTER all links to CSS files, including CORE.CSS. Master pages deployed via a Feature will call CORE.CSS AFTER the custom CSS file(s). I wish you every success in your important work. Best regards, David HM
Free Windows Admin Tool Kit Click here and download it now
November 2nd, 2010 10:05pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics