Legacy Knowledge Base
Published Jul. 2, 2025

Using a Custom Theme for Account Verification and Default Landing and Logout Pages

Written By

Ira Chui

How To articles are not official guidelines or officially supporteddocumentation. They are community-contributed content and may not alwaysreflect the latest updates to Liferay DXP. We welcome your feedback toimprove How to articles!

While we make every effort to ensure this Knowledge Base is accurate, itmay not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with anyfeedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack"publication program, made available for informational purposes. Articlesin this program were published without a requirement for independentediting or verification and are provided "as is" withoutguarantee.

Before using any information from this article, independently verify itssuitability for your situation and project.
Liferay Portal users often deploy a custom theme and want to use this custom theme as the background instead of the default Liferay classic theme. This article describes how the custom theme can be used multiple places in the portal including the account verification, default landing and default log out pages.

Resolution

  1. Before starting Liferay Portal, enter this property in the portal-ext.properties:
    login.create.account.allow.custom.password=true
  2. Start Liferay Portal.
  3. Deploy the custom theme.
  4. Create a site using the custom theme, and add several pages to the site.
  5. Click Site URL and copy the friendly URL ("/zoe-healthcare-site").
  6. Navigate to Control Panel > Portal Settings > General
  7. Enter the following:
    • Home URL/web/${friendly URL}/${page1}
    • Default Landing Page/web/${friendly URL}/${page1}
    • Default Logout Page/web/${friendly URL}/${page2}
  8. Click the Save button.
  9. Navigate to Control Panel> Portal Settings> Authentication
  10. Flag the Require strangers to verify their email address check box.
  11. To verify that the custom theme has been applied, click Sign Out. The URL will show c/portal/logout redirect to the page defined as the Default Logout Page in step 7: /web/${friendly URL}/${page2}.
  12. Click Sign In
  13. The custom theme displays instead of the default Liferay class theme as the background to the Sign In portlet. Enter the credentials and sign in.
  14. Users will be redirected to the page defined as the Default Landing Page in step 7: /web/${friendly URL}/${page1}.
  15. Click the Create Account link.
  16. Fill in the information to create a new user. Verify at this time that the custom theme displays instead of the classic Liferay theme.

Additional Information

Did this article resolve your issue ?

Legacy Knowledge Base