CSS Customization targeting IE8
-
Hi,
A client has hired me to make some CSS Customization to his wordpress.com to make it compatible with IE8. The problem is that the theme he has chosen is not compatible with IE8 yet all his readers will be on IE8 (government institution).
I thought there would be ways of easily fixing the problem using CSS hacks in the CSS customization tab. However, WordPress strips all characters in CSS customization, so it doesn’t work. Internet Explorer 8 does not view the new CSS rules.
Is there a way to either:
1. Add a class to the HTML or BODY tag with the browser name and version ? like <html class=’ie8′>
2. Make CSS Customization to be in a conditional comment targeting only IE8?
3. Any other way to make CSS Customization rules target only IE8 ?Many thanks !
PhilThe blog I need help with is: (visible only to logged in users)
-
Hi Phil, wow… IE8…
What you are going to have to do is use one of our older themes introduced before we stopped supporting IE8. Themes released later than that of course could work, but the newer ones with a lot of CSS3 stuff would be problematic.
I’m putting together a list of those themes for you, which you can test. They should have an IE8 CSS id set in the opening HTML tag when the site is viewed on IE8, so you could use that to target and create IE8 specific rules.
-
Phil, what I’m going to offer here is archives from our blog here where theme announcements were done. I’ve included 2013-2010. Themes released in that timeframe should be IE8 compatible already and give you a good head start on things. I would view the theme demos and view the source and look in the opening HTML tag for an IE8 CSS class or ID that you can use. It could well be that some of the themes from 2014 are also IE8 compatible, so you could check some of those as well.
The one thing I will note is that some of the 2010-2012 themes may have already been retired either due to very low use or because of issues with some of our other features that would have required major modifications to the theme.
Let me know what you think and we can go from there.
-
Oops, the links to the blog archives:
2013: https://en.blog.wordpress.com/2013/
2012: https://en.blog.wordpress.com/2012/
2011: https://en.blog.wordpress.com/2011/
2010: https://en.blog.wordpress.com/2010/Also, at the top of any of the above pages is a horizontal list of years you can click on to see the posts from that year. Sorry I couldn’t come up with just a list of theme release posts.
- The topic ‘CSS Customization targeting IE8’ is closed to new replies.