How to Delete Joomla’s Forget Username and Forget Password Links?

How to Delete Joomla’s Forget Username and Forget Password Links?

The login form of Joomla always has the links for Forget Username and Forget Password below. However, if users do not wish to use these functions, there is a way to easily get rid of them.

In this article, we will know the exact way to remove Joomla’s Forget Username and Forget Password Links. We apply it on the latest version of Joomla, Joomla 3.6.2.

This is how a Joomla's default login form looks like:

1. Delete the links from Users component

- Firstly, please go to Templates > Templates > Open the Details and Files Preview of the template you are using.

- Go to tab “Create Overrides” to create an override by following Components > com_users > login

- There is now a message informing that the override has been successfully created in html\com_users\login

- In tab “Editor”, please go to html > com_users > login > Open "default_login.php"

- Remove the code from line 93 – 100:

<li>
            <a href="/blog/<?php echo JRoute::_('index.php?option=com_users&view=reset'); ?>">
            <?php echo JText::_('COM_USERS_LOGIN_RESET'); ?></a>
        </li>
        <li>
            <a href="/blog/<?php echo JRoute::_('index.php?option=com_users&view=remind'); ?>">
            <?php echo JText::_('COM_USERS_LOGIN_REMIND'); ?></a>
</li>

2. Delete the links from Login module

- Please go to Templates > Templates > Open the Details and Files Preview of the template you are using

- In tab “Create Overrides”, go to Module > mod_login

- There is now a message informing that the override has been successfully created in html > mod_login.

- In tab “Editor”, please go to html > mod_login > Open "default.php"

- Remove the code from line 105-112:

<li>
                    <a href="/blog/<?php echo JRoute::_('index.php?option=com_users&view=remind&Itemid=' . UsersHelperRoute::getRemindRoute()); ?>">
                    <?php echo JText::_('MOD_LOGIN_FORGOT_YOUR_USERNAME'); ?></a>
                </li>
                <li>
                    <a href="/blog/<?php echo JRoute::_('index.php?option=com_users&view=reset&Itemid=' . UsersHelperRoute::getResetRoute()); ?>">
                    <?php echo JText::_('MOD_LOGIN_FORGOT_YOUR_PASSWORD'); ?></a>
</li>

3. Check the result

Now you can go to your front-end of site and check the result.

 

Thank you so much for reading this tutorial. I hope that it can be useful to you.

30% OFF on Photography Agency – One Page WordPress...
OFF Support for Some TemPlaza’s WordPress Themes

Search Blogs

Latest Blogs

20 April 2019
News
Today, we are extremely happy to announce that new versions of Auto Showroom and Interiart WordPress Theme are available. These releases are to fix some known bugs and add new layouts.  ...
18 April 2019
Articles
Photographers, designers and web administrators always want to prevent theft of their images. And one of the effective ways to protect your images or source code is Disable Right Click on images by using plugins.  ...
17 April 2019
News
Spring is in the air. To brighten up your Easter on this lead-up to Easter Sunday (April 21st, 2019), TemPlaza would like to offer you a special discount on a limited number of Joomla templates and WordPress themes on Themeforest....
12 April 2019
News
Hi guys, Today we're so pleased to announce that we have recently updated 6 templates with latest extensions and made them completely compatible with Joomla 3.9.5. These 6 template with their Quickstart packages have got issue fixed and Joo...
20 March 2019
Articles
A standard WordPress website can be built up within a few minutes, but you can't do that for a beautiful, eye-catching and full functional one. Especially, for tourism and travelling websites, it is vital to have both a fascinating and attractive app...