IE11 Body Class as Gecko

Ger Vang asked on June 3, 2014 10:51

I know that IE11 took out the MSIE in the userAgent signature and rendering as a Gecko browser. Is there a way for me to go into Kentico and modify the code that is injecting browser classes? The issue I'm facing is Firefox render as a Gecko browser and IE11 is also doing the same thing. IE11 is using the class of Firefox and not rendering some text correctly. When I'm running IE11, the classes are "Gecko Gecko11". I want to change it to "IE IE11". Any help will be great!

Recent Answers


Jan Hermann answered on June 4, 2014 04:26

Hello,

if you find a way to recognize IE11, you can simply extend the body class by your own class:

CMS.CMSHelper.CMSContext.CurrentBodyClass += " IE11";

Best regards, Jan Hermann

0 votesVote for this answer Mark as a Correct answer

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