Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

  • rsgGuru
    Participant

    @rsgguru

    Sorry for the delay Hans. You can just put the code in your site’s header. Different themes handle this in different ways. For example, in Genesis themes there is a Theme Settings option in the WP Admin tool that has options for adding header and footer code to the site.

    Most themes also have a header.php file that you can edit if you’re comfortable with coding but this is usually a bad idea as future updates may undo your work.

    Finally, there are some plug-ins that will give you the ability to add code within your sites HTML HEAD section:

    https://wordpress.org/plugins/tags/head

    Hope that helps!


    rsgGuru
    Participant

    @rsgguru

    I found this thread doing a Google search for the same type of problem noted above. Not finding a solution, I came up with a quick and dirty fix for my site.

    Copy (public) profile name to account user name during registration… the code below simply hides the account user name field and uses jQuery to fill in that field with the profile name value after it is entered or changed by the user.

    Hopefully this will prove useful to the next person that comes along with the same problem 🙂

    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=signup_username],#signup_username').css('display','none');
        jQuery('#field_1').blur(function(){
            jQuery("#signup_username").val(jQuery("#field_1").val());
        });
    }
    });
    
Viewing 2 replies - 1 through 2 (of 2 total)
Skip to toolbar