I am using wordpress multisite and I want to hide the field name at the registration. The following code might work on single site but definitely does not work on multisite. How can we make it work on Multisite?
In your CSS:
div.field_1{
display:none;
}
In your bp-custom.php or functions.php:
function buddydev_disable_firstname() {
?>
<script type="text/javascript">
jQuery(document).ready(function(){
var jq=jQuery;
jq("#signup_username").on("blur",function(){
jq("#field_1").val(jq("#signup_username").val());
});
});
</script>
<?php
}
add_action( 'bp_after_register_page', 'buddydev_disable_firstname');