BuddyBoss Home – Web › Support Forums › Themes › Boss. theme › How to erase links in /wp-login.php
- This topic has 7 replies, 3 contibutors, and was last updated 8 years, 7 months ago by Anonymous.
Question
March 25, 2016 at 10:17 am #65180@kostasfHey @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
March 26, 2016 at 12:37 am #65383@anveHi @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
AnveMarch 26, 2016 at 4:39 am #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!
March 26, 2016 at 6:34 am #65421@anveHi @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
AnveMarch 26, 2016 at 10:35 am #65466March 26, 2016 at 10:35 am #65467@
Anonymous🙂 Great
March 26, 2016 at 10:50 am #65469@kostasf@vapvarun is also a boss, having helped me with the buttons!! 🙂
March 27, 2016 at 11:59 pm #65575@
AnonymousThanks @kostasf,
I will close this topic, feel free to create new for any further queries.
Regards
Varun Dubey
- The question ‘How to erase links in /wp-login.php’ is closed to new replies.