Thanks for your inquiry, and for your purchase.1. s2Members pro has its own registration form and its css I like to customize the registration form to my theme. How can I do that?? Please help.
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( these are MUST USE plugins, see:
http://codex.wordpress.org/Must_Use_Plugins )
- 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");
}
?>
Or, you could remove only specific action Hooks; based on Payment Gateway.
- 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_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");
}
?>
How can I selectively load s2Member's CSS/JavaScript libraries, based on the Page displayed?
You can create this directory and file:
/wp-content/mu-plugins/s2-hacks.php( these are MUST USE plugins, see:
http://codex.wordpress.org/Must_Use_Plugins )
- Code: Select all
<?php
add_action ("ws_plugin__s2member_after_loaded", "remove_s2_css");
function remove_s2_css ()
{
if (!is_page (array (1, 2, 3))) {
remove_action ("wp_print_styles", "c_ws_plugin__s2member_css_js_themes::add_css");
remove_action ("wp_print_scripts", "c_ws_plugin__s2member_css_js_themes::add_js_w_globals");
}
}
?>
There are
more tips like in our FAQ, and throughout our
support forums.
2. Also I need to have 2 registration forms for 2 roles for example I am having 2 roles one is student and another is Teacher. Either I should have a role field while registering or 2 fields in Membership login as Student register and teacher register. I am confuse how to achieve this. Please help me to do this.
Please see this video tutorial:
http://www.s2member.com/free-registrati ... vel-video/If you have questions, please DO let us know