Jump to content


Photo
- - - - -

Please enqueue_style for all stylesheets


  • Please log in to reply
4 replies to this topic

#1 kadampa

kadampa

    Newbie

  • Members
  • Pip
  • 8 posts

Posted 01 March 2011 - 10:51 AM

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);


#2 cmunns

cmunns

    Advocate

  • Members

  • 6537 posts
  • Country: Country Flag

Posted 01 March 2011 - 08:36 PM

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

#3 kadampa

kadampa

    Newbie

  • Members
  • Pip
  • 8 posts

Posted 02 March 2011 - 10:22 AM

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 :)

#4 agileapricot

agileapricot

    Member

  • Members
  • PipPip
  • 25 posts

Posted 02 March 2011 - 10:25 AM

Yes particularly the IE scripts.

#5 agileapricot

agileapricot

    Member

  • Members
  • PipPip
  • 25 posts

Posted 02 March 2011 - 10:35 AM

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