Replies
- Christopher Niedzwiecki on January 14, 2016 at 9:27 pm in reply to: Requiring only Username at sign up. #2327
ah thats awesome. Does it work with your change username plugin, so that if they change their username in settings, it will rechange the visible name? Also, does that go in the header or functions?
- Christopher Niedzwiecki on January 14, 2016 at 9:12 pm in reply to: Requiring only Username at sign up. #2324
By the way…the css code to get rid of the “visible username” options so that they can’t change it.
#profile-details-section {
display: none;
}#profile-edit-form {
display: none;
} - Christopher Niedzwiecki on January 14, 2016 at 9:12 pm in reply to: Requiring only Username at sign up. #2323
Works good, just will have a loophole if you use Buddydev’s username changer. A hack to make it possible to still change usernames would be awesome 😀 if not I still love you. Hope this helps someone
- Christopher Niedzwiecki on January 14, 2016 at 9:02 pm in reply to: Requiring only Username at sign up. #2322
I have found the solution to this (I think). Put this code into the header. Need to test to see if its changeable after you log in and see if @mentions is broken with it, but hopefully not.
<script>
var url = document.location.href;
jQuery(document).ready(function() {
//copy profile name to account name during registration
if (url.indexOf(“register/”) >= 0) {
jQuery(‘label[for=field_1],#field_1’).css(‘display’,’none’);
jQuery(‘#signup_username’).blur(function(){
jQuery(“#field_1”).val(jQuery(“#signup_username”).val());
});
}
});
</script> - Christopher Niedzwiecki on January 13, 2016 at 1:18 am in reply to: [Resolved] How to modify wp-admin-bar-my-account? #2302
I’m using this code. Thanks a lot!