azimut2000 / wordpress-cmis-plugin

Automatically exported from code.google.com/p/wordpress-cmis-plugin
0 stars 0 forks source link

css link bad positionning #1

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. use any king of complex themes with the cmis plugin
2. css of the theme are destroyed.

the 
""""""
<link type="text/css" rel="stylesheet" +... 
/wp-content/plugins/cmis/css/cmis.css" />
""""""
are inserted before <html><head> section.... 
it breaks any kind of theme....

Original issue reported on code.google.com by franc...@liot.org on 7 Dec 2011 at 4:34

GoogleCodeExporter commented 8 years ago
correction proposal :

in cmis.php

delete lines 47-49 : 
"""
function cmis_set_head() {
        echo '<link type="text/css" rel="stylesheet" href="' . get_option('siteurl') . '/wp-content/plugins/cmis/css/cmis.css" />' . "\n";
}
"""

delete line 37 : 
"""
add_action('get_header', 'cmis_set_head');
"""

add line 34 :
"""
wp_enqueue_style('cmis', '/wp-content/plugins/cmis/css/cmis.css');
"""

Original comment by franc...@liot.org on 7 Dec 2011 at 4:43