Hide a Required field in buddypress registration

Hello
I want to know how to reduce the required registration fields in BuddyPress.
hide : username
and Name

add fields to Re Email

So the registration form will be:
-Email
-Re Email
-Password
-Re Password
thank you

  • Ash

    Hello there

    I hope you are well today and thanks for asking the question.

    You can't hide the username, as without username how you will login in admin?
    The name field is compulsory for BP. So, theoretically you can't remove this too. But I have a solution (may be) to hide this. Please add this code in your footer.php

    <script type="text/javascript">
    	jQuery(document).ready(function($) {
    		var url = document.location.href;
    		if (url.indexOf("register/") >= 0) {
    			$('#field_1').parent().hide();
    			$('#signup_username').blur(function() {
    				$('$field_1').val($('#signup_username').val());
    			});
    		}
    	});
    </script>

    For re-email I found this thread helpful. Please take a look:
    http://wordpress.org/support/topic/retype-email-during-registration?replies=6

    Please let me know if it is helpful and feel free to ask more question if you have.

    Cheers
    Ash

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.