Legacy Knowledge Base
Published Jul. 2, 2025

h2 Tags Are Able to Be Edited by Default

Written By

Christopher Lui

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.

Liferay will support our API and resolve any issues and answer any questions having to do with the API itself or any other part of Liferay's software. Issues and questions regarding custom development may be handled by our Global Services team or by the developer of those customizations.

In Liferay DXP 7.0, with HTML Level 2 Heading tags (h2) containing portlet-title-text, the Liferay platform will automatically add portlet-title-editable. This means that if you have a custom portlet which allows for editing the h2 tag, then you may end up also renaming the page's h2 tag as well.

Resolution

Make sure to add not-editable in your h2 tag. For example: <h2 class="portlet-title-text not-editable">

As noted in the disclaimer above, this article describes a behavior that is the result of custom development. Please understand that Liferay Support is limited in how we can assist you as it regards these specific matters related to custom code.

For further information, please review our Support Policy on Code Development.

Did this article resolve your issue ?

Legacy Knowledge Base