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.
Hi,
I have installed drupal 7.0 and I cannot hide the login block.
I read the handbook and especially number 18 : How to remove the login register and RSS but doesn't help.
I also set the block value to none inside drupal 7 administration but still no luck.
How can I add this login block on drupal 7?
Comments
Comment #1
smartmobili CreditAttribution: smartmobili commentedComment #2
danpros CreditAttribution: danpros commentedHi,
Regarding the login block only visible if you are not login after you setup it.
In D7 all is different, I am not updating the handbook yet.
Disable the feed
Disable the login register
Dan
Comment #3
klonosIt would be really nice if these were options (checkboxes) in the theme's settings. Again, like #1032248: Move 'My account' & 'Log out' from bottom to top, one will have to edit code again and again upon theme version upgrade.
Comment #4
klonos...besides having them as theme settings, it would also be nice to respect the 'Registration and cancellation' setting (../admin/config/people/accounts). When only admins are set to be allowed to register new accounts, then the 'Register' link should not be visible at all (currently it takes you to a 'Access denied - You are not authorized to access this page.' page).
Comment #5
danpros CreditAttribution: danpros commentedklonos,
Yes #3 and #4 should available in my next release :)
Thanks,
Dan
Comment #6
klonosThanx Dan, waiting anxiously to test things out ;)
[off-topic]: Have you ever thought about having a dev version for each of your 6.x and 7.x branches?
Comment #7
calbert CreditAttribution: calbert commentedI tried this and it seems to have done nothing for me.
Comment #8
syedahafsa CreditAttribution: syedahafsa commentedIs there a way to hide the login form? i'm using danland 7.0 . Has anybody done it? The solutions provided here are not working. Also how do i clear cache? Please reply.
Comment #9
Taxoman CreditAttribution: Taxoman commentedI assume that it is not the "form", but the links at the top of the pages you mean.
(if not, this is not a Danland theme issue)
Steps:
1. Rename the local-sample.css to local.css, and add the following lines to it:
#authorize ul {
display: none;
}
#notice {
display: none;
}
2. Edit the Danland.info file:
Change the line:
;stylesheets[all][] = local.css
to
stylesheets[all][] = local.css
(=remove the ";", so it becomes activated)
3. In Drupal, go to "Configuration -> Performance" and click on "Clear all caches".
4. Clear the cache of your browser too, just in case (perhaps not necessary).
5. Reload the front page of your web site. The Login and Register links should now be gone.
If you want to remove the RSS link too, remove "ul" from the "authorize" part of the code in step 1 so that it becomes:
#authorize {
display: none;
}
All the variants are described here:
http://drupal.org/node/768350#login-register-rss
Edit: I somehow forgot to include the "#notice" part in step 1. Added it to this comment. (that part removes the footer credits)
Comment #10
Taxoman CreditAttribution: Taxoman commentedIf this does not work, feel free to re-open this issue.
(If this is indeed about the _block_ , then make sure you have either hidden the block on the blocks page, or removed it from the desired user roles (for example "Anonymous"), on the configuration page for that block. That is normally not related to the theme.)
Comment #12
Taxoman CreditAttribution: Taxoman commented(better title for future searches)
Comment #13
phicarre CreditAttribution: phicarre commentedOK for me: login and RSS hidden
but in the bottom there is always a "my account" link !
Comment #14
somepal CreditAttribution: somepal commentedlittle help for those who would come to this page looking for ways to hide login/rss etc.
in newer version rss feed-icon is under the 'feed-wraper' div. So
only hides login & register links.
To hide rss-feed icon too, put this in your local.css
Comment #15
isam8 CreditAttribution: isam8 commentedEven when the Login and Register links are hidden, anyone who knows Drupal can still access those pages directly by typing the URL directly.
http://www.onthespotmemories.com/user
How can I have a Login URL that can't be accessed unless the URL is given directly?
Thank you in advance.
Comment #16
Anonymous (not verified) CreditAttribution: Anonymous commentedHow to remove login from home page in Drupal 6. I did what was described in the local.css and I still cannot get the login to stop displaying. I have a subdomain with Danland in the themes directory of the subdomain in sites.
** it really matters where the #authorize block is placed in local.css. Moved it to the top and the login is gone.
Comment #17
Anonymous (not verified) CreditAttribution: Anonymous commentedBeen using this theme for years and still love it. Is there a wah to remove the "HOME" form the front page? Thanks so much Dan.