editor-font-awesome-css, ie7-style and child theme
-
Not sure if this is “by design” but the theme will break if I create a child theme and forget to copy /inc/fontawesome/font-awesome.css and /inc/styles/ie.css to the child.
It’s easily fixed by changing
get_stylesheet_directory_uri
toget_template_directory
in functions.php:function editor_scripts() {} as in:function editor_scripts() { wp_enqueue_style( 'editor-style', get_stylesheet_uri() ); /** * FontAwesome Icons Stylesheet */ wp_enqueue_style( 'editor-font-awesome-css', get_template_directory() . "/inc/fontawesome/font-awesome.css", array(), '4.1.0', 'screen' ); /** * Conditionally load our stylesheet for Internet Explorer. Yuck! */ wp_enqueue_style( 'ie7-style', get_template_directory() . '/inc/styles/ie.css' ); . . .
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘editor-font-awesome-css, ie7-style and child theme’ is closed to new replies.