h2 Tags Are Able to Be Edited by Default

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.

Was this article helpful?
0 out of 0 found this helpful