Of course i have <?php wp_head(); ?> in my header.php.
Update:
add_action(‘wp_head’, ‘add_css’); works well in page and single post but not works in frontpage and archive page
@otto:
a. Yups the function is called cause that function is find and replace in the_content section.
Example in my plugin:
function insert() {
preg_match(bla..bla..bla..)
and
replace(bla..bla..bla..)
add_filter(‘wp_head’, ‘add_css’);
}
add_filter(‘the_content’, ‘insert’);
I want this cause i don’t want to make the page size bigger with that css when the html doesn’t need it. Big page size it’s mean slow page loading.