Legacy Knowledge Base
公開されました Jul. 2, 2025

7.4 スタイルのカスタム テーマが正しく機能しない

Written By

Cristina Rodriguez

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.

問題

  • 7.4 でスタイル ベースのカスタム テーマをページに適用すると、ヘッダーやその他の要素が正しく配置されず、ウィジェットの 3 つの省略記号ボタンをクリックすると、オプションが間違った場所に表示されます。

Captura.PNG

Environment

  • Liferay 7.4 および Liferay Theme Generator 10.1.0。

解決策

  • これに対する公式の解決策は、 https://issues.liferay.com/browse/LPS-142928で実装されます。
  • ジェネレーターの新しいバージョンがリリースされるまで、簡単に適用できる回避策があります。
    • 生成されたテーマの package.json ファイルで、次の devDependencies を変更します。
"liferay-frontend-theme-styled": "6.0.2",
"liferay-frontend-theme-unstyled": "6.0.2",

終了:

"liferay-frontend-theme-styled": "6.0.14",   
"liferay-frontend-theme-unstyled": "6.0.15",
    • npm iを介して新しい依存関係をインストールします
    • それらを再デプロイします: gulp deploy
  • この後、カスタム テーマは正常に動作するはずです。

追加情報

Did this article resolve your issue ?

Legacy Knowledge Base