Removing items from WP_Head Question
I’m in the process of cleaning up the wp_head function by adding “remove_action” filters in my functions.php file.
There are two CSS files being loaded that I would like to remove from the wp_head queue list.
<link rel='stylesheet' id='admin-bar-css' href='http://example.com/wp-includes/css/admin-bar.css?ver=3.4.1' type='text/css' media='all' /> <link rel='stylesheet' id='boxes-css' href='http://example.com/wp-content/plugins/wordpress-seo/css/adminbar.css?ver=3.4.1' type='text/css' media='all' />
How do I find out what to put in the remove_action() function to pull these out of the header?
I tried putting the ID in:
remove_action( 'wp_head', 'admin-bar-css' ); remove_action( 'wp_head', 'boxes-css' );
But that doesn’t seem to do the trick. Any help would be appreciated.
- The topic ‘Removing items from WP_Head Question’ is closed to new replies.