Bug in CSS markup
-
It appears that you have a bug in your code that is causing the link tags to be malformed in the header. Specifically, the media parameter is not populating. For example, the KitchenBug tags in my header looked like this:
<link rel='stylesheet' id='recipe-reset-css' href='https://greekgodsyogurt:8888/wp-content/plugins/kitchenbug/application/assets/css/recipe-reset.css?ver=0.6.0' type='text/css' media>
I tracked the problem to the kitchenbug/KB/Wordpress.php file on line 187. This line
wp_enqueue_style($name, $path, $dependancy, $this->kitchenbug->config['plugin']['version'], $isFooter);
should look like this:
wp_enqueue_style($name, $path, $dependancy, $this->kitchenbug->config['plugin']['version']);
That at least give the media parameter a value of “all”.
Thanks.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Bug in CSS markup’ is closed to new replies.