Statistics: Posted by Raam Dev — January 26th, 2012, 10:22 pm
Statistics: Posted by Raam Dev — January 23rd, 2012, 3:41 pm
Statistics: Posted by loewenberg — January 18th, 2012, 1:54 am
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:
<?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");
}
?>
Or, you could remove only specific action Hooks; based on Payment Gateway.
- Code:
<?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_alipay_css_js::alipay_css");
remove_action ("ws_plugin__s2member_during_css", "c_ws_plugin__s2member_pro_authnet_css_js::authnet_css");
remove_action ("ws_plugin__s2member_during_css", "c_ws_plugin__s2member_pro_ccbill_css_js::ccbill_css");
remove_action ("ws_plugin__s2member_during_css", "c_ws_plugin__s2member_pro_clickbank_css_js::clickbank_css");
remove_action ("ws_plugin__s2member_during_css", "c_ws_plugin__s2member_pro_google_css_js::google_css");
remove_action ("ws_plugin__s2member_during_css", "c_ws_plugin__s2member_pro_paypal_css_js::paypal_css");
}
?>
Statistics: Posted by Cristián Lávaque — December 17th, 2011, 5:37 am
Statistics: Posted by loewenberg — December 15th, 2011, 1:26 pm
Statistics: Posted by Cristián Lávaque — December 15th, 2011, 4:44 am
Statistics: Posted by loewenberg — December 6th, 2011, 5:57 pm