Removing the default CSS
Posted: January 2nd, 2012, 12:43 am
I'm trying to remove the default CSS s2Member produces from the head:
I searched these forums and found a solution but it simply isn't working.
Any idea's as to why it's not being removed?
- Code: Select all
<link rel="stylesheet" id="ws-plugin--s2member-css" href="http://site.com/spa/wp-content/plugins/s2member/s2member-o.php?ws_plugin__s2member_css=1&qcABC=1&ver=111220-111220-1212004154" type="text/css" media="all" />
I searched these forums and found a solution but it simply isn't working.
How can I prevent s2Member Pro from loading it's default CSS?
You can create this directory and file: /wp-content/mu-plugins/s2-hacks.php
- Code: Select all
<?php
add_action ("ws_plugin__s2member_after_loaded", "remove_s2_pro_css");
function remove_s2_pro_css ()
{
remove_action ("ws_plugin__s2member_during_css", "c_ws_plugin__s2member_pro_css_js::css");
}
?>
Any idea's as to why it's not being removed?