Default.skin refresh

Dan Gowans asked on September 4, 2015 20:23

I am trying to change the look and feel of the Event Calendar. Reading through other questions on the matter, I was referred to the Default.skin file in the App_Themes/[ProjectName] folder.

My project did not have such a file, so I copied the one from IntranetPortalRed.

The changes defined in the new Default.skin file do not seem to be taking effect. Is there somewhere where a pointer to this file needs to be defined? Does this file not accept live changes? Is there a refresh process I'm missing?

Recent Answers


Dan Gowans answered on September 4, 2015 20:25 (last edited on September 4, 2015 20:26)

On a side note, I originally had the "ProjectName" folder in angled brackets, not square brackets. The full question appeared fine in the preview, but wasn't visible after saving.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on September 4, 2015 22:46 (last edited on September 7, 2015 13:26)

Typically when you setup your site and use the CSS Stylesheets app, a folder is created in the /App_Themes/< csscodename > directory. In there you create your default.skin file and style the calendar as you see fit. Best practice is to name your stylesheet code name the same as your site name so it all exports if and when you choose to export your site.

You can then set a SkinID in the .skin file or leave it empty and it will be automatically applied to all calendar objects. I'd suggest adding the ID then in your webpart configuration, you enter the same SkinID and things should link up.

0 votesVote for this answer Mark as a Correct answer

Dan Gowans answered on September 8, 2015 14:51

The folder was there. The skin file was missing. I created it using a copy from one of the stock templates to make sure I structured the file correctly and spelt the file name exactly right, but still, the Default.skin file doesn't seem to be looked at.

Does a link to this new file need to be defined somewhere in the Site Manager? A config file on the server?
Does the application need to be rebuilt in Visual Studio before changes can be seen?

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on September 14, 2015 18:42

Look in your newly created .skin file (should be named "Default.skin") and look for a SkinID property, if it has one, then you need to apply that SkinID to your webpart as well. If you want it to be applied to all controls no matter what, remove the SkinID property.

Also it could be that you're trying to reference a standard asp.net control <asp:Button> and you need to reference the Kentico version <cms:LocalizedButton> in your skin file. Make sure the control is the same. You should not have to recompile or do anything else, it should pick up automatically.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.