<?php
add_action("ws_plugin__s2member_during_add_css", "use_static_css_for_s2member");
function use_static_css_for_s2member(){
wp_dequeue_style("ws-plugin--s2member");
wp_enqueue_style("ws-plugin--s2member", "http://path/to/your.css");
}
// Required function.
// This will be added in WordPress 3.1
if(!function_exists('wp_dequeue_style')) {
function wp_dequeue_style( $handle ) {
global $wp_styles;
if ( !is_a($wp_styles, 'WP_Styles') )
$wp_styles = new WP_Styles();
$wp_styles->dequeue( $handle );
}
}
?>
Statistics: Posted by Jason Caldwell — October 23rd, 2010, 5:07 am
Statistics: Posted by markelshark — October 17th, 2010, 12:58 pm