BuddyDev

Search

[Resolved] bp-ajax-registration not working

  • Participant
    Level: Initiated
    Posts: 3
    Jerry Tan on #4651

    i try to add a class ‘bp-ajaxr‘ to location > appearance > Menu > CSS Classes (optional) to trigger the form by menu and is not working.

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #4652

    Hi Jerry,
    My apologies.
    You have added the css correctly.

    Can you please point me to the site? Just need to check if it is a javascript conflict?

    Thank you
    Brajesh

  • Participant
    Level: Initiated
    Posts: 3
    Jerry Tan on #4654

    http://www.biz-job.com , or you need wordpress login ?

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #4656

    Thank you Jerry.
    I noticed two things.

    1. The css selector is applied to the list item and not anchor. In that case, ‘bp-ajaxr’ is not a good choice. Instead, please use ‘bp-signup’

    2. You are using kleo theme that includes magnific popup, so the popup won’t work yet. Please put this code in your functions.php or bp-custom.php and both the ajax registration and kleo popups will work fine.

    
    add_action( 'wp_enqueue_scripts', 'kleo_remove_magnific_files', 100 );
    
    function kleo_remove_magnific_files() {
    	if ( ! is_user_logged_in() ) {
    		wp_dequeue_script( 'magnific-popup' );
    	}
    }
    

    Please do let me know if it works for you or not?

  • Participant
    Level: Initiated
    Posts: 3
    Jerry Tan on #4657

    thank you. is working now

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #4658

    Thank you. Marking it as resolved.

    Regards
    Brajesh

The topic ‘ [Resolved] bp-ajax-registration not working’ is closed to new replies.

This topic is: resolved