Jump to content
Sign in to follow this  
kadampa

Please enqueue_style for all stylesheets

Recommended Posts

kadampa

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
cmunns

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

Share this post


Link to post
Share on other sites
kadampa

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
agileapricot

Yes particularly the IE scripts.

Share this post


Link to post
Share on other sites
agileapricot

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  

×