the page main title is below the content.

You can see the problem in the picture.

enter image description here



How can I fix that? Thanks!


If this only Account pages please create customer_account.xml in you theme below path Yourtheme/Magento_Customer/layout/customer_account.xml and add below line

<move element="page.main.title" destination="content.top" before="-"/>

If this issue in all pages then add below line in Yourtheme/Magento_Theme/layout/default.xml.

<move element="page.main.title" destination="content.top" before="-"/>

May be you have used below code in XML

<move element="page.main.title" destination="content" after="-"/>

This is basic html error

The page title must be written in the title tag and any heading in the header tag.

refer to the example

Page Title

Bold header

light header

To align the title in the center you can use style="text-align: center" in the HTML.

  • can you describe the solution more detailled?
    – k33n
    Apr 24 '18 at 12:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.