Statistics: Posted by Cristián Lávaque — April 19th, 2011, 12:42 pm
How can I prevent s2Member Pro from loading it's default CSS?
You can place this into the functions.php file for your WordPress® theme.
- Code:
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:
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");
peterhuk wrote:
Does the email address the customer uses on my site have to be the same as the
one they use for paypal?
Statistics: Posted by Cristián Lávaque — April 19th, 2011, 2:03 am
add_action('admin_init', 'my_plugin_admin_init_css_js' );
function my_plugin_admin_init_css_js(){
if(class_exists('c_ws_plugin__s2member_css_js_themes')){
wp_enqueue_style ("ws-plugin--s2member", site_url ("/?ws_plugin__s2member_css=1&qcABC=1"), array (), c_ws_plugin__s2member_utilities::ver_checksum (), "all");
$md5 = WS_PLUGIN__S2MEMBER_API_CONSTANTS_MD5;
wp_enqueue_script ("ws-plugin--s2member", site_url ("/?ws_plugin__s2member_js_w_globals=" . urlencode ($md5) . "&qcABC=1"), array ("jquery"), c_ws_plugin__s2member_utilities::ver_checksum ());
}
}
Statistics: Posted by peterhuk — April 18th, 2011, 8:11 pm
Statistics: Posted by peterhuk — April 18th, 2011, 1:42 pm
Statistics: Posted by Cristián Lávaque — April 18th, 2011, 1:35 pm
Statistics: Posted by peterhuk — April 18th, 2011, 1:33 pm
Statistics: Posted by Cristián Lávaque — April 18th, 2011, 1:32 pm
Statistics: Posted by peterhuk — April 18th, 2011, 7:00 am
Statistics: Posted by Cristián Lávaque — April 17th, 2011, 10:49 pm
Statistics: Posted by peterhuk — April 17th, 2011, 8:08 pm