Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Replace default buddypress login with “Login with Ajax”


imjscn
Participant

@imjscn

Login_with_Ajax doesn’t automatically replace buddypress sidebar login form.
You can either modify or remove the sidebar login form.
If modify– follow Boon’s instruction, modify lines 29-56, take the widget_out.php as reference, and no need to add LWA widget
if remove–put this in your child theme’s functions.php, then, add LWA widget in sidebar:
`add_action(‘bp_before_sidebar_login_form’, ‘mesh_before_sidebar_login_form’);
function mesh_before_sidebar_login_form() { ob_start(); }
add_action(‘bp_after_sidebar_login_form’, ‘mesh_after_sidebar_login_form’);
function mesh_after_sidebar_login_form() { ob_end_clean(); }`

Skip to toolbar