@import in WordPress child theme may crash IE8

I didn’t know that a WordPress site may crash IE8 before last week. The WordPress site crashed IE8 over again and again after I disabling all the plugins, commenting all the scripts, even disabling all the shortcodes. After eliminating all the impossible, I found out the cause of the problem. It was the first code line in the style.css file of the child theme.

I don’t know why it caused the problem, but I do know the quick fix.

1. Comment the @import line in the style.css file of the child theme.

2. Add the following code to the functions.php file of the child theme.

When I saw the above code on WordPress.tv 2 months ago, I was wondering why bother. :P

References

Want to try the Twenty Thirteen theme? You need WordPress 3.6.

I feel like trying new stuff. So I won’t miss the new WordPress Twenty Thirteen theme.

I downloaded the latest WordPress nightly build from http://wordpress.org/nightly-builds/wordpress-latest.zip and uncompressed it. I then compressed the “twentythirteen” folder in the “wordpress-latest\wordpress\wp-content\themes” folder. I then installed the Twenty Thirteen theme in .zip format and clicked its “Activate” link expectantly. To my surprise, I met with an error message claiming “Twenty Thirteen requires at least WordPress version 3.6. You are running version 3.5.1. Please upgrade and try again.” 8-O

Twenty Thirteen requires at least WordPress version 3.6.

Hmm… :-?   This is not good. I deleted the Twenty Thirteen theme disappointingly. :-(

It seemed that I had to upgrade my WordPress installation from v 3.5.1 to v 3.6 beta 2.

After backing up my existing site by running the zip command from the command line (You man want to use the cPanel File Manager to compress your site.) and the database using phpMyAdmin, I installed and activated the WordPress Beta Tester plugin. I then clicked the “Tools > Beta Testing” menu item, and chose the “Bleeding edge nightlies” option, and clicked the “Save Changes” button. After clicking the “head on over and upgrade now” link and waiting for a dozen seconds, my WordPress installation was upgraded from v 3.5.1 to v 3.6 beta 2 successfully. :-)

After activating the WordPress Twenty Thirteen theme,  I disabled its header and then installed and activated the Disqus Comment System plugin. I’ll modify some styles of the theme by writing a simple child theme for it in the near future. ;-)

References