BuddyBoss Home – Web Support Forums Themes Boss. theme How to erase links in /wp-login.php

Viewing 8 posts - 1 through 8 (of 8 total)
  • Question

    #65180
    @kostasf

    Hey @vapvarun I realised that after we created the button LOGIN WITH FB in the page /wp-login.php some links with small letters have remained under the main spaces and one of them is register. How I can erase them? I explain you in the attached picture..

    Answers

    #65383
    @anve

    Hi @kostasf,

    Try adding the following code in theme-functions.php of child theme

    
    function remove_lostpassword_text ( $text ) {
             if ($text == 'Lost your password?'){$text = '';} 
                    return $text; 
             }
    add_filter( 'gettext', 'remove_lostpassword_text' );
    

    This will help you removing lost your password link.

    Also go to Settings > General . Uncheck ‘Anyone can register’ option and SAVE.

    Regards
    Anve

    #65410
    @kostasf

    Νο @anve I cannot do that! Thank you but I want people to register but I want to hide these links so people don’t register through e-mail, but through fb login button I have in this page!

    #65421
    @anve

    Hi @kostasf,

    Try applying following code in theme-functions.php

    
    function my_login_logo() { ?>
        <style type="text/css">
            #login > p#nav {
      display: none;
    }
        </style>
    <?php }
    add_action( 'login_enqueue_scripts', 'my_login_logo' );
    
    

    Regards
    Anve

    #65466
    @kostasf

    Nice @anve!! You made me happy!! 🙂

    #65467

    Anonymous
    @

    🙂 Great

    #65469
    @kostasf

    @vapvarun is also a boss, having helped me with the buttons!! 🙂

    #65575

    Anonymous
    @

    Thanks @kostasf,
    I will close this topic, feel free to create new for any further queries.
    Regards
    Varun Dubey

Viewing 8 posts - 1 through 8 (of 8 total)
  • The question ‘How to erase links in /wp-login.php’ is closed to new replies.