legacy-knowledge-base
公開されました Jun. 30, 2025

Custom Themes are no longer shown as Site Templates in DXP 7.4

written-by

Madhusudan Sharma

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

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

legacy-article

learn-legacy-article-disclaimer-text

Issue

  • In Liferay DXP 7.3, custom themes were seen under Site Templates Pop Up (Control Panel > Site > Choosing the template).
  • However, in Liferay DXP 7.4, custom themes do not come under Site Templates, and is rather inconvenient to pick a theme.

Environment

  • Liferay DXP 7.4

Resolution

  • It is the expected behavior of the Product (Liferay DXP 7.4).
  • The reason behind this is that the part of the code that was responsible for generating these site templates was the 'Resources Importer', a tool that existed for a very long time and was tied to themes.
  • The “Resources Importer” gave the possibility of initializing a site with data when a theme is applied to a site and for this, the custom themes were coming under the site templates section.
  • However, this tool (Resource Importer) has been deprecated from the latest versions, and 'Site Initializers' came into the picture with the same intention. As a result, custom themes are no longer shown as Site Templates in Liferay DXP 7.4 and Site Initializers are present there.

Additional Information

  • Please note that the Site Initializers is an interface that allows developers to write any desired code that is executed when a site is created and the administrator selects that site initializer. They are presented to the administrator just like Site Templates are, but it's a programmer who decides what the newly created site will be created like. The article Introducing Site Initializers shared earlier explains more about it.
did-this-article-resolve-your-issue

legacy-knowledge-base