开发者

custom css file in sharepoint online won't update

I am working on an intranet in Sharepoint online. I have added a custom css file and included it in the masterpage, after the default stylesh开发者_运维问答eets. In the sourcecode I can see it clearly and I can follow the path to its intended file.

Earlier I had no problems to check it out, edit in Sharepoint designer, save it, then checking it in and changes would apply to the site.

But now the changes I make don't seem to catch. I have cleared cache on several browsers but still no change.

The masterpage and the custom startpage are both published. No files are left checked out.

I may be a sharepoint noob, I have searched any number of forums but not found anything pertinent to my problem.

Can anyone give me a pointer in the right direction please? :)


Do you save the CSS file in a document library that uses versioning? Perhaps you forgot to publish the latest version of your changes, so browsers only see your previous version.


I made an account specifically to respond to this post because I was having the same issue and found your update about creating a new CSS file helpful in determining the real issue. So I wanted to share my solution!

In the end I discovered it was our BLOB cache being enabled that was causing the issue. We had enabled it to use image renditions. As per the following technet article regarding configuring the BLOB cache, I removed CSS from the file types and our issue was resolved! http://technet.microsoft.com/en-US/library/cc770229(v=office.15).aspx#BLOB

I hope this helps :)


  1. You are logged in as the Site Collection administrator?
  2. CTRL+F5 to get the latest .css from server?
  3. When you View Source you are able to see the link to your .css file?
  4. When you follow the link to the .css file and open the .css file, it has the recent changes you made?

I think you might have done this.. but make sure after publishing the .css file it is approved.

Press F12 to load IE Dev Toolbar to see what styles are being used in the elements in question. May be you have a small syntax error in the recent classes you added.

  • Thanks, Karthik.


In the end I made a copy of the css file, gave it a new name and referred to that instead, worked like a charm.

Thanks for your answers and comments all


Under Site Collection Administration settings, go to SharePoint Designer settings and make sure all the checkboxes are marked including "Enable Customizing Master Pages and Page Layouts "

Also, make sure your tag that cites your custom CSS is just below the last meta tag in the head of your master page.

Lastly, remove quotes... there are additional quotes added with javascript so you don't need quotes AND have the full URL to the stylesheet or it will not work!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜