ErkkiTuomi
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Twenty Fourteen] ie8/ie9 problemYes, thank you. That has to be it. I’ll keep on fighting and make the script work and load the IE stylesheet, which it doesn’t at the moment.
thanks all,
Forum: Themes and Templates
In reply to: [Twenty Fourteen] ie8/ie9 problemI have the child theme set up correctly. I still have no clue why the twentyfourteen demo works on ie8, and my website with a child theme doesn’t.
Also it opens up the mobile menu. Not only the styles are all wrong, looks like the scripts dont’ work either.
ie9 and browser on a microsoft phone works nicely.
grazy.
Forum: Themes and Templates
In reply to: [Twenty Fourteen] ie8/ie9 problemThis sounds good but I couldn’t make it work. Unfortunately I still have this problem. So, I have a css-folder with ie-style in my child-theme.
I did this (where “sanahaltuun” is the name of the child theme):
// remove ie css from twentyfourteen theme
function mytheme_dequeue_styles() {
wp_dequeue_style( ‘twentyfourteen-ie’ );
}
add_action( ‘wp_enqueue_scripts’, ‘sanahaltuun_dequeue_styles’, 11 );
//add new from child theme
wp_enqueue_style( ‘sanahaltuun-ie’, get_stylesheet_directory_uri() . ‘/css/ie.css’, array( ‘twentyfourteen-style’ ), ‘1.0’ );
$wp_styles->add_data( ‘sanahaltuun-ie’, ‘conditional’, ‘lt IE 9’ );But it gives error about the ‘sanahaltuun_dequeue_styles’.
thanks,
Eki
Forum: Themes and Templates
In reply to: [Twenty Fourteen] ie8/ie9 problemok, more info. I’m doing a child theme and there’s ie.css stylesheet twentyfourteen/css folder. This might be a problem if the child theme’s css-file overrides ie.css, but still, how to fix?