IE(10) not showing CSS from Twenty Twelve Child Theme
-
I cannot get Internet Exporer (IE 10) to read my twentytwelve child theme style.css. I haven’t even checked older versions of IE. It looks fine in Chrome and Firefox. I have searched and searched the codex and google. I have also read several posts (19 pages worth) on the theme support page. I have tried a few different fixes. I have my wordpress (version 3.6.1) site in a subdirectory.
https://www.gotbarking.com/info/
I have read that “With Twenty Twelve being “mobile-first”, IE got overlooked a bit”. I have customized the site to my liking with much patience, research and trial and error. I have a few plugins installed and have made some customization to several php files including functions.php.
Is there or should there be some documentation on the theme page that states this issue and how to address it before install?
Is there a fix for this or should Twenty Twelve be used primarily for mobile sites?This is what I understand.
If you are going to customize a theme to make a child theme. (done)
Insert style.css into child theme. (done)
Make changes to child theme style.css including add @import url(“../twentytwelve/style.css”); to top. (done)This is what I do not understand about this issue.
Do I have to include a /css/ie.css folder in child theme? (done)
Do I add the same changes in child style.css to /css/ie.css? (added some css, did not work)
How do I rectify changes in child style.css with parent style.css and /css/ie.css in regards to “Media Queries”?Most of my css customization in the child style.css is not structured under media queries including css for new elements not included in parent style.css.
I have both of the following in my header.php.
<!--[if lt IE 9]> <script src="<?php echo get_stylesheet_directory_uri(); ?>/js/html5.js" type="text/javascript"></script> <![endif]--> <!--[if gt IE 7]> <link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri(); ?>/ie.css" media="screen" type="text/css" /> <![endif]-->
I found the following fix in the forum and several other places (using both twentytwelve-child and mytheme code). It doesn’t work. I get an error when using “twentytwelve-child code (posted below).
/** * remove twentytwelve-ie css must use priority greater than 10 * then add our special version in child theme's css folder */ function twentytwelve-child_dequeue_styles() { wp_dequeue_style( 'twentytwelve-ie' ); } add_action( 'wp_enqueue_scripts', 'twentytwelve-child_dequeue_styles', 11 ); function mytheme_equeue_styles() { global $wp_styles; wp_enqueue_style( 'twentytwelve-child-ie', get_stylesheet_directory_uri() . '/css/ie.css', array( 'twentytwelve-style' ), '1.0' ); $wp_styles->add_data( 'twentytwelve-child-ie', 'conditional', 'lt IE 10' ); } add_action( 'wp_enqueue_scripts', 'twentytwelve-child_equeue_styles', 11 );
Parse error: syntax error, unexpected ‘-‘, expecting ‘(‘ in /home/content/60/8825060/html/gotbarking/info/wp-content/themes/twentytwelve-child/functions.php on line 8
Thank you in advance for any feedback.
- The topic ‘IE(10) not showing CSS from Twenty Twelve Child Theme’ is closed to new replies.