XF 2.2 Remove Log In warning for non-registered users.


New member
Is there any way I can remove the red login warning for non-registered users? I have restricted non-registered users from viewing forums. Doing that was a work around to ensure that anyone who visits 'mydomain.com' lands on the login page. However, I don't like the red warning and would rather remove it and/or replace it with a logo. I know I can edit the text via the 'login_required' phrase, but I want to get rid of the warning completely.
Screen Shot 2020-11-24 at 8.20.40 am.png
Last edited:


Well-known member
Guess you could edit the login template and remove or comment out this bit:
<xf:if contentcheck="true">
    <div class="blockMessage blockMessage--error blockMessage--iconic">