By LudachrisGSX on
Yes, I've done some searching on this but can't find what I'm looking for. I simply need to remove the link from the login block. I don't want to change the user settings, as I want people to be able to create accounts on their own. I just want to hide the link from anonymous users who come across the site. The only way I want people to be able to register is through the login page, which select people will be pointed to through Organic Group invitations. I'm trying to limit who can create an account and this is the best approach. I just can't find any easy way to remove the link.
Comments
Just to clarify, I don't want
Just to clarify, I don't want to remove the Create New Account tab from the login page, just the link that shows up on the login block. I want the tab to remain on the login page.
There are many ways to do
There are many ways to do this. One of which is via css.
For a quick fix, you'd add SOMETHING like this to your themes style.css
While this code works for Bartik in D7, the id's and classes will most likely be different for your theme.
Important note on "hiding" things with css; "visibility:hidden" will hide the item in question but hold it's position...while using "display:none" will remove it from the page and could cause nearby items to change their position.
Error on using above code
I get the error below when i add : "#user-login-form .first {
visibility:hidden;
} "
Notice: Undefined variable: hide_site_name in include() (line 99 of C:\Users\abinibi\Desktop\mysite\sites\all\themes\mybartik\templates\page.tpl.php).
Notice: Undefined variable: hide_site_name in include() (line 109 of C:\Users\abinibi\Desktop\mysite\sites\all\themes\mybartik\templates\page.tpl.php).
Notice: Undefined variable: hide_site_slogan in include() (line 116 of C:\Users\abinibi\Desktop\mysite\sites\all\themes\mybartik\templates\page.tpl.php).
Please can you assist?
Thanks.