Design and CSS styles
Version 3.x > Design and CSS styles > Body css classes how to disable the cuture part added after 3.0 View modes: 
User avatar
Member
Member
martijn.schiferli-reedbusiness.com - 1/4/2009 6:53:00 PM
   
Body css classes how to disable the cuture part added after 3.0
Hi,

I am thring to upgrade my 3.0 kentico version to the latest 3.1a and found that there is now incuded in the body class section an element for cuture and language. Can this be turned of aka disabled. I have a lot of style sheets that are now broken because of this change.

Regards,

Martijn Schiferli

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 1/5/2009 8:58:10 AM
   
RE:Body css classes how to disable the cuture part added after 3.0
Hi Martijn,

unfortunately, there is not any easy way how to disable only the culture part of body class if you have not a source code.

The value of the body class is stored in the CMSContext.CurrentBodyClass method.

It is used on two places:
1. When adding to a page in:
<your website folder>/App_Code/CMSPages/DocumentBase.cs (line about 311)
2. While displaying the master page tab in:
<your website folder>/CMSDesk/Content/MasterPage/PageEdit.aspx.cs (line about 54)

You could re-write the code on these places – e.g. split the string or hard-code the exact value.


Best regards,
Helena Grulichova