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

07 August 2019
News
Today, we would like to announce that Jollyany 3.1.2 is already available. This release contains an update on Jollyany framework and some bug-fixes for known issues. Please have a look at all changes that were made in this version. You're better off ...
03 August 2019
Articles
Nowadays, owning a website is an efficient way to not only show the world what services you're providing, but target more potential clients, as well as improve readership. Joomla is a free and professional content management system that offers u...
02 August 2019
News
First of all, our team are so pleased to announce that Fashion Joomla Template 3rd generation has been released as a part of Jollyany. Fashion or Fashion Semona is a template deliberately designed for fashion model agencies. It's a clean, modern...
31 July 2019
Articles
WordPress is truly a massive resource where users can find anything they need to build up an attractive website. In the previous article, we recommended a list of powerful page builder plugins which help users facilitate the website building p...
30 July 2019
News
Hi guys, We're so happy to announce that Jollyany 3.1.0 is already available. This new release comes with a lot of improvements, latest updates, and new awesome features added. Especially, there is another brand-new topic that officially joins Jollya...