Issue
- This article documents a case where a page's Menu Display widget, Search bar widget, and Footer cannot be removed from a page's layout
Environment
- Liferay DXP Quarterly Releases
Resolution
- Pages inherit styles from themes and templates. Please examine the themes and master template in use for the affected page.
- If the widgets and other elements are included in the master template, please consider creating a separate template for use with the page.
- If the widgets and other elements are included in the theme, you can perform the following steps to remove them. For example, in the out-of-the-box Classic theme, these are the procedures that can be followed to disable certain elements from the theme:
1. Go to Site Menu > Site Builder > Pages
2. Locate the page that you wish to remove these elements from, and click the three-dot icon next to the page in question, then click Configure.
3. In the Configuration screen, go to the Design tab.
4. In the Design tab, under Theme, you should see that the default setting is "Use the inherited theme."
Select "Define a custom theme for this page." instead, and uncheck the following items:
- Show Footer
- Show Header
- Show Header Search
5. Save the page configuration
6. In the context of Content Pages, this will cause the page to go into Draft mode. This means that the update is not yet live, so you will need to go back to the page's edit screen and publish it again to persist the changes. This does not affect Widget Pages.
Additional Information
- Site Appearance (learn.liferay.com)
-
Embedding Widgets Using Templates (learn.liferay.com)
- This section of Liferay's official documentation may be useful in ascertaining whether there are any embedded widgets designed into your custom theme.