
Originally Posted by
KnxDT
When you say that you "manually add them back in". Where do you do this?
The same way you would add any script or CSS file to a page. Typically by using wp_enqueue_script() or wp_enqueue_style() in your themes functions.php file or in a plugin file.
EDIT: If you don't know what wp_enqueue_script() and wp_enqueue_style(), try Googling them. They're important to understand for unhooking and rehooking CSS and JS files in plugins/themes.
To get you started ....
PHP Code:
/* Load stylesheets
* @since 0.1
*/
function random_stylesheets() {
if ( is_page() )
wp_enqueue_style( get_stylesheet_directory_uri() . '/random.css', false, '', 'screen' );
}
add_action( 'wp_print_styles', 'random_stylesheets' );