Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The Log In link (at the top right of each page for anonymous users) in the secondary menu seems to be hard coded. I have removed all blocks from secondary menu and the link still appears. I added other blocks into secondary menu and they do not appear, but Log In, does. Page source below.
<div class="region region-secondary-menu">
<nav role="navigation" aria-labelledby="block-openchurch-theme-account-menu-menu" id="block-openchurch-theme-account-menu" class="contextual-region block block-menu navigation menu--account">
<h2 class="visually-hidden" id="block-openchurch-theme-account-menu-menu">User account menu</h2>
<div class="content">
<ul class="clearfix menu">
<li class="menu-item">
<a href="/user" data-drupal-link-system-path="user">Log in</a>
</li>
</ul>
</div>
</nav>
</div>
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous as a volunteer commentedmercergirl created an issue.
Comment #2
JonM CreditAttribution: JonM commentedHave you tried the steps detailed here?
https://www.drupal.org/docs/7/managing-users/hide-user-login
Comment #3
Anonymous (not verified) CreditAttribution: Anonymous as a volunteer commentedYes, of course I tried removing the login block. As I said, the login block does not appear on the blocks page. There are no blocks in the secondary menu. It seems to be hard coded, but I am not going to dig into the code.