Sign in to follow this  
Followers 0

Please enqueue_style for all stylesheets

5 posts in this topic

Posted · Report post

I'm trying to override the styles for brandnav.css and it would be so much easier if i could just deregister_style like I do with all the others.

function deregister_styles(){
	    wp_deregister_style('superfish'); // Superfish dropdowns
	    wp_deregister_style('superfish-shadow'); // Superfish dropdown shadows
	    wp_deregister_style('superfish-arrows'); // Superfish dropdowns arrows
	    wp_deregister_style('pagelines-pro'); // PlatformPro defaults
	}
	add_action('wp_print_styles','deregister_styles', 100); 

Share this post


Link to post
Share on other sites

Posted · Report post

Hey Neil, That's a great suggestion especially for child theming capabilities.

Share this post


Link to post
Share on other sites

Posted · Report post

Also could ALL scripts be enqueue too? The enqueue sytem in wordpress makes it so easy to remove stuff and manage decencies (as you can set them in the enqueue function). Thanks :)

Share this post


Link to post
Share on other sites

Posted · Report post

Yes particularly the IE scripts.

Share this post


Link to post
Share on other sites

Posted · Report post

It would also be very useful if we could deregister options and option groups and option tabs in the admin interface.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0