How to hide/remove "Request New password" link in Drupal 7? I am using 'Login Block' to access Intranet pages from our website. I used 'Login Block' on www.example.com/common-intra
 page to login into intranet section.

I am using userprotect module to hide profile/username/password information from the users when they logged in into Intranet section (www.example.com/common-intra) with universal account.

But, I wanted to hide/remove "Request New password" link from Intranet Login page:

I found this module, haven't used yet though:
https://www.drupal.org/project/noreqnewpass

Is there any other easy way to just hide "Request New password" link from that Intranet Login page?

I still want this tab on general login page such as:
www.example.com/user
 But, I just want to hide it from the www.example.com/common-intra page.

I also tried to hide it with css.

This is my page source code:

&lt;div class="panel-separator"&gt;&lt;/div&gt;&lt;div class="panel-pane pane-block pane-user-login common-intra pane-user common_login_button"   class="panel-pane pane-block pane-user-login common-intra pane-user common_login_button"&gt;


    &lt;div class="pane-content"&gt;
        &lt;form action="/common-login?destination=node/16" method="post" id="user-login-form" accept-charset="UTF-8"&gt;&lt;div&gt;&lt;div class="form-item form-type-textfield form-item-name"&gt;

      &lt;label for="edit-name"&gt;Username &lt;span class="form-required" title="This field is required."&gt;*&lt;/span&gt;&lt;/label&gt;

     &lt;input type="text" id="edit-name" name="name" value="" size="15" maxlength="60" class="form-text required" /&gt;
    &lt;/div&gt;


&lt;div class="form-item form-type-password form-item-pass"&gt;
  &lt;label for="edit-pass"&gt;Password &lt;span class="form-required" title="This field is required."&gt;*&lt;/span&gt;&lt;/label&gt;

 &lt;input type="password" id="edit-pass" name="pass" size="15" maxlength="128" class="form-text required" /&gt;
&lt;/div&gt;


    &lt;div class="item-list"&gt;
&lt;ul&gt;
&lt;li class="first last"&gt;&lt;a href="/user/password" title="Request new password via e-mail."&gt;Request new password&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;

&lt;input type="hidden" name="form_build_id" value="form-_xyzabc" /&gt;




&lt;div class="form-actions form-wrapper" id="edit-actions"&gt;&lt;input type="submit" id="edit-submit" name="op" value="Log in" class="form-submit" /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/form&gt;  &lt;/div&gt;

  &lt;/div&gt;


I gave class name 'common-intra' to user login block to my node template.

.common-intra ul li{
    display: none;
}


I also tried:

.panel-pane pane-block pane-user-login common-intra pane-user common_login_button ul li
    {
          display: none;
    }
this will remove it from the render array before it is printed. In your theme's template.php, add:

function MYTHEME_form_alter(&amp;$form, &amp;$form_state, $form_id)
{
    if($form_id == 'user_login_block')
    {
        $form['links']['#markup'] = '&lt;div class="item-list"&gt;&lt;ul&gt;&lt;li class="first"&gt;&lt;a href="/dev/user/register" title="Create a new user account."&gt;Create new account&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;';
    }
}


Basically, it is just rewriting the markup for the links in the user login block. You can tweak this to theme as well. this should only apply to the user block