Legacy Knowledge Base
Published Sep. 10, 2025

How can I search for all instances where a specific theme has been applied?

Written By

Michael Tran

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

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • I have applied a specific theme to certain pages and would like to update the theme to a new one. However, I am not sure which pages / layouts have my theme has been applied.
    • When I remove my previous theme and update to my new theme, I am seeing this warning:
      WARN [https-jsse-nio-4443-exec-7][ThemeLocalServiceImpl:220] No theme found for specified theme id Sample_theme. Returning the default theme.
  • Is there a way to search and identify where my previous theme has been applied so that I can remove all instances of my old theme to address the warning?

 

Environment

  • Liferay 2024.Q3

 

Resolution

  • Themes applied can be found in the following tables within the database:
    • Layout
    • LayoutRevision
    • LayoutSet
    • LayoutSetBranch
  • You may query these tables to search for your desired theme. A sample query such as the following would work:
  • SELECT * FROM Sample.Layout
    WHERE themeId LIKE '%MyTheme%' ;

 

Additional Information

 

 

Did this article resolve your issue ?

Legacy Knowledge Base