Legacy Knowledge Base
Published Jul. 2, 2025

Control Menu is shown without styles

Written By

Daniel Couso

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

  • Control Menu is shown without styles when navigating from a Control Panel page to a page configured with a custom theme and SPA is enabled.
  • Refreshing the page fixes this issue temporarily until the next problematic navigation.

Environment

  • Liferay DXP 7.0, 7.1, 7.2

Resolution

  • The root cause of this issue is that the custom theme has changed the original value of the attribute lang in the root tag html:
    <html class="${root_css_class}" dir="<@liferay.language key="lang.dir" />" lang="${w3c_language_id}">
  • If this attribute is removed or modified, then the Liferay SPA module lacks the information to detect a language change, leading potentially to not load some permanent CSS resources.
  • In order to solve this issue, make sure the value of the attribute lang is present and set to the provided variable ${w3c_language_id}.
Did this article resolve your issue ?

Legacy Knowledge Base