Login page

In Moodle
About this page

Layout, background, welcome text, and content around the sign-in form.

Login Page

Customize the login page layout, background, and other settings

Dropdown choice

Login Page Layout

Pick a login layout — centred form, or split screen with a background image.

Admin keytheme_xy/setloginlayout

Choices

  • #1 – Box with centered background image
  • #2 – Box with right-aligned image
  • #3 – Box with left-aligned image
Suggested screenshot. Photograph the login or registration page on desktop and phone after saving your changes.
Add screenshot: screenshots/login/setloginlayout.png
Drag-and-drop order

Login Page Block Order

Drag the handles or use the arrow buttons to rearrange the order in which login page blocks appear. blocks (e.g. signup when disabled) keep their slot but render nothing.

Admin keytheme_xy/loginlayoutorder
DefaultEmpty
Suggested screenshot. Photograph the login or registration page on desktop and phone after saving your changes.
Add screenshot: screenshots/login/loginlayoutorder.png
On / off

Hide login form

Hides the login form and shows a link instead — common when everyone uses SSO.

Admin keytheme_xy/ishiddenform
DefaultOff

Additional notes

Hide the login form and show a link to the login page for admin users

Text area

Login for admin label

Customize the label for the login for admin link

Admin keytheme_xy/ishiddenformlabel
DefaultLogin for admin
On / off

Display list of identity providers before the login form

Show authentication options like OAuth2 providers above the standard login form

Admin keytheme_xy/loginidprovtop
DefaultOff
On / off

Logo outside the container

Position the logo outside the main login container

Admin keytheme_xy/loginlogooutside
DefaultOff
On / off

Sign up link outside the container

Show the sign up link in the top right corner instead of below the login button

Admin keytheme_xy/customsignupoutside
DefaultOn
On / off

Hide password reset link

Remove the "Forgot password?" link from the login form

Admin keytheme_xy/hideforgotpassword
DefaultOff
Text area

Additional content under login form

Add content below the password field using this HTML snippet: <div class="mt-3"><p class="small">Your text here</p></div> View login page customization guide

Admin keytheme_xy/logininfobox
DefaultEmpty
Text area

Login Introduction

Add introductory text to appear above the login form

Admin keytheme_xy/loginintrotext
DefaultEmpty
Text area

HTML Content #1

Enter text or HTML. You can paste ready-made content from your communications team.

Admin keytheme_xy/loginhtmlcontent1
DefaultEmpty
Text area

Custom HTML Block (under the login form)

Add custom HTML content below the login form

Admin keytheme_xy/loginhtmlblockbottom
DefaultEmpty
Text area

HTML Content #3

Enter text or HTML. You can paste ready-made content from your communications team.

Admin keytheme_xy/loginhtmlcontent3
DefaultEmpty
Text area

Footer Content

Enter text or HTML. You can paste ready-made content from your communications team.

Admin keytheme_xy/loginfootercontent
DefaultEmpty
Text area

Custom Footer HTML or JS

Add custom HTML or JavaScript code to the login page footer

Admin keytheme_xy/logincustomfooterhtml
DefaultEmpty
Text area

Create Account Label

Customize the text shown next to the "Create an account" button

Admin keytheme_xy/stringca
DefaultDon\'t have an account?
Text area

Back to Login Label

Customize the text shown next to the "Back to login" link

Admin keytheme_xy/stringbacktologin
DefaultAlready have an account?

Login Page Background Image & Video

Upload or select a background image and video for the login page

Upload a file

Login Page Background Image

Upload or select a background image for the login page

Admin keytheme_xy/loginbg
Suggested screenshot. Photograph the login or registration page on desktop and phone after saving your changes.
Add screenshot: screenshots/login/loginbg.png
Upload a file

Login Page Background Video

Upload or select a background video for the login page

Admin keytheme_xy/loginvideobg
Suggested screenshot. Photograph the login or registration page on desktop and phone after saving your changes.
Add screenshot: screenshots/login/loginvideobg.png
Short text

Login Background Color (Image Container)

Set the background color for the login image container

Admin keytheme_xy/loginbgcolor
Suggested screenshot. Photograph the login or registration page on desktop and phone after saving your changes.
Add screenshot: screenshots/login/loginbgcolor.png

Background panel content

Simple mode: position, title and description shown on the background image panel (layout #2 and #3).

Dropdown choice

Background panel content position

Where to display content on the background image panel (layout {$a->layout2} or {$a->layout3}).

Admin keytheme_xy/loginbgcontentposition
Suggested screenshot. Photograph the login or registration page on desktop and phone after saving your changes.
Add screenshot: screenshots/login/loginbgcontentposition.png
Short text

Title

Heading shown on the background panel. E.g. "Welcome to our platform".

Admin keytheme_xy/loginbgcontenttitle
DefaultEmpty
Suggested screenshot. Photograph the login or registration page on desktop and phone after saving your changes.
Add screenshot: screenshots/login/loginbgcontenttitle.png
Text area

Description

Short description below the title. E.g. "Sign in to continue your courses".

Admin keytheme_xy/loginbgcontenttext
DefaultEmpty
Suggested screenshot. Photograph the login or registration page on desktop and phone after saving your changes.
Add screenshot: screenshots/login/loginbgcontenttext.png

Content appearance

Background behind content and block colours on the image panel.

On / off

Background behind content

Enable to add a coloured background behind the title and description. Disable for text only (no background box).

Admin keytheme_xy/loginbgcontentbg
DefaultOn
Suggested screenshot. Photograph the login or registration page on desktop and phone after saving your changes.
Add screenshot: screenshots/login/loginbgcontentbg.png
Short text

Content background colour

Set the background colour of the content block on the image panel. Only applies when "Background behind content" is enabled.

Admin keytheme_xy/loginbgcontentbgcolor
Suggested screenshot. Photograph the login or registration page on desktop and phone after saving your changes.
Add screenshot: screenshots/login/loginbgcontentbgcolor.png
Short text

Content text colour

Set the colour of the title and description on the image panel.

Admin keytheme_xy/loginbgcontentfontcolor
Suggested screenshot. Photograph the login or registration page on desktop and phone after saving your changes.
Add screenshot: screenshots/login/loginbgcontentfontcolor.png

Custom HTML

Advanced mode: custom HTML instead of the simple mode fields.

Text area

HTML content

Trusted content: this HTML is rendered without escaping on the public login page (all visitors). Restrict theme editing to site administrators only. Custom HTML on the background panel (layout {$a->layout2} or {$a->layout3}). When this field is filled, simple mode settings (content and appearance) are ignored. Position classes: rui-login-intro-pos–center , –top-left , –top-center , –top-right , –bottom-left , –bottom-center , –bottom-right No background: add class rui-login-intro-box–plain Example with background (center): <div class="rui-login-intro-box rui-login-intro-pos–center" style="background-color:rgba(0,0,0,0.55);color:#fff;"> <h2>Welcome to our platform</h2> <p>Sign in to continue your courses.</p> </div> Example without background (bottom right): <div class="rui-login-intro-box rui-login-intro-box–plain rui-login-intro-pos–bottom-right" style="color:#fff;"> <p>Need help? help@example.com</p> </div>

Admin keytheme_xy/loginhtmlcontent2
DefaultEmpty
Suggested screenshot. Photograph the login or registration page on desktop and phone after saving your changes.
Add screenshot: screenshots/login/loginhtmlcontent2.png