XF 2.3 How to Add Text to Login Page?

Matthew H

Active member
I'd like to add a line of text below the prompt for the username on the login. I figure it's a template or macro, but I don't know which one or how to add the text.
 
I'd like to add a line of text below the prompt for the username on the login. I figure it's a template or macro, but I don't know which one or how to add the text.
You can edit the phrase but I believe that phrase is used in multiple places. Because of that you will need to edit the template and directly insert the text or create a new phrase and change the existing phrase to your custom one.
Option two is the most desirable so you can make changes to the text at anytime without editing the template again.
 
Edit template login

Change
HTML:
                <xf:textboxrow name="login" value="{$login}" autofocus="autofocus" autocomplete="username"
                    label="{{ phrase('your_name_or_email_address') }}" />

To:

HTML:
                <xf:textboxrow name="login" value="{$login}" autofocus="autofocus" autocomplete="username"
                    label="{{ phrase('your_name_or_email_address') }}">
                    <xf:html>
                        Your label
                    </xf:html>
                </xf:textboxrow>

For:

1732170128327.webp
 
Back
Top Bottom