Statistics: Posted by Dilip Rajkumar — November 4th, 2011, 1:15 am
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.
<?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");
}
?>
<?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");
}
?>
<?php
add_action ("ws_plugin__s2member_after_loaded", "remove_s2_css");
function remove_s2_css ()
{
if (!is_page (array (1, 2, 3))) /* See <http://codex.wordpress.org/Conditional_Tags> */
{
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");
}
}
?>
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.
Statistics: Posted by Jason Caldwell — November 3rd, 2011, 1:17 pm
Statistics: Posted by Dilip Rajkumar — November 3rd, 2011, 1:36 am