<h1 class="hide-accessible">Navigation</h1> is shown on all DXP pages

Issue

  • Liferay DXP HTML source will contain the below snippet on all portal pages:

    <nav class="quick-access-nav" id="vseg_quickAccessNav">
        <h1 class="hide-accessible">Navigation</h1>
        <ul>
            <li>
                <a href="#main-content">Skip to Content</a>
            </li>
        </ul>
    </nav>
    This might be at times detrimental to SEO.

Environment

  • Liferay DXP 7.0
  • Liferay DXP 7.1
  • Liferay DXP 7.2
  • Liferay DXP 7.3

Resolution

The attached module (src and .jar) was created by following the above tutorial (7.1) and, once deployed, will modify the <h1> tag to be a <span>.

Additional Information

  • Official Liferay Feature request: LPS-97102
  • Modifying the aforementioned tag may hinder the Liferay's accessibility. You may read more information about the feature here: New feature for Liferay 7: Quick Access
  • Overriding core JSPs is deprecated and shall be used only as a last resource. To get more information, see the foreword written in each tutorial
  • The attached proof of concept plugin is not an official Liferay solution, it is unsupported and only provided for convenience, to explain the process with a tangible project and be a hint to start your development
¿Fue útil este artículo?
Usuarios a los que les pareció útil: 0 de 0