- Web templates
- E-commerce Templates
- CMS & Blog Templates
- Facebook Templates
- Website Builders
Joomla 3.x. How to delete “password reset” link
January 29, 2016
Joomla 3.x. How to delete “password reset” link
This tutorial shows how to get rid of username and password reset links in Joomla 3.x.
In case you would like to delete account reset link from display and availability for search engines, please perform the steps below:
-
Log into Joomla admin panel and navigate to the Extensions – Template manager – Templates – ThemeXXXX tab. Click Create Overrides – Components – com_users – login:
-
In case override already exists in your theme, go straight to editing files. Open the html/com_users/login/default_login.php file for editing.
-
Find and delete lines 87-88 in order to get rid of the reset password links:
<li><a href="<?php echo JRoute::_('index.php?option=com_users&view=reset'); ?>"><?php echo JText::_('COM_USERS_LOGIN_RESET'); ?></a></li> <li><a href="<?php echo JRoute::_('index.php?option=com_users&view=remind'); ?>"><?php echo JText::_('COM_USERS_LOGIN_REMIND'); ?></a></li>
-
Save changes in the file.
-
Next, navigate to Create overrides/Modules/mod_login to create the login module override. In case override already exists in your theme, go straight to editing theme files.
-
Open the html/mod_login/default.php file in the Editor tab, find and delete lines 97-98:
<li><a href="<?php echo JRoute::_('index.php?option=com_users&view=remind'); ?>" class="" title="<?php echo JText::_('MOD_LOGIN_FORGOT_YOUR_USERNAME'); ?>"><?php echo JText::_('TPL_REMIND'); ?></a></li> <li><a href="<?php echo JRoute::_('index.php?option=com_users&view=reset'); ?>" class="" title="<?php echo JText::_('MOD_LOGIN_FORGOT_YOUR_PASSWORD'); ?>"><?php echo JText::_('TPL_RESET'); ?></a></li>
-
Save changes in the html/mod_login/default.php file and check changes on the front-end. Now username and password reset links are removed:
Feel free to check the detailed video tutorial below: