BuddyDev

Search

[Resolved] Customize Login Page

  • Participant
    Level: Enlightened
    Posts: 57
    shelley parker on #12582

    I need to change the text that appears inside the first input box on the login page from “Username or Email Address” to just “Email Address”. How do I find the page on the back end and make that change please? https://community.pointlomatowncouncil.org/register/

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #12585

    Hi Shelly,
    The WordPress added this in 4.5 and you can change the label in two ways:-

    1. Translating WordPress
    2. Using code

    Do you want to disable login with username completely or just text? If your intention is to disable login with username, I will suggest looking at email login plugin.

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 57
    shelley parker on #12591
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #12592

    Hi Shelley,
    Thank you.

    In that case, you may use this code in your bp-custom.php

    
    
    /**
     * Filter and translate the WordPress login text label.
     *
     * @param string $translation translation.
     * @param string $text original text.
     * @param string $domain text domain.
     *
     * @return string
     */
    function buddydev_filter_email_login_label( $translation, $text, $domain ) {
    	if ( 'Username or Email Address' === $text && 'default' == $domain ) {
    		$translation = 'Email Address';
    	}
    
    	return $translation;
    }
    add_filter( 'gettext', 'buddydev_filter_email_login_label',10, 3 );
    
    

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 57
    shelley parker on #12598
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #12607
    This reply has been marked as private.
  • Participant
    Level: Enlightened
    Posts: 57
    shelley parker on #12622

    “there” where exactly? Please provide full navigation please.

    HERE? public_html > wp-content > plugins
    HERE? community.pointlomatowncouncil.org > wp-content > plugins
    ELSEWHERE?

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #12625

    Hi Shelly,
    It should be in your public_html > wp-content > plugins assuming that public_html is where all the fiiles for community.pointlomatowncouncil.org is hsted.

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 57
    shelley parker on #12628

    appears to work, thank you!

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #12632

    You are welcome.

The topic ‘ [Resolved] Customize Login Page’ is closed to new replies.

This topic is: resolved