2

there is a problem my all page title are displaying below the content. here is a screenshot. enter image description here

please suggest a solution.

2
  • show you customer_account.xml code. Aug 28, 2017 at 12:01
  • Hi, were you ever able to solve this? I just noticed that "My Dashboard" page title is displaying at the bottom. Only in customer/account/ page. I even reverted my theme from another staging instance (title displays correctly there), but still. Jul 24, 2018 at 8:57

2 Answers 2

4

1) Override the customer_account.xml file to your theme.

2)Then add the below content into it .

<page layout="2columns-left" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">

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

3)Clear the cache.

4)If your site mode is production then deploy static contents.

6
  • hi thanks but it didnt work in my case, i have customer_account.xml in my layout folder but still the title is displaying below the content
    – Jay Kapoor
    Aug 28, 2017 at 11:50
  • This should work !, I think you have modified some other layout in your respected theme. Please mention your magento version. OR CHANGE destination = "content" to destination="content.top" Aug 28, 2017 at 11:56
  • version is 2.1.7 and i dont think i have modified any layout or what
    – Jay Kapoor
    Aug 28, 2017 at 11:57
  • If this also have a concern then add "move tag" (<move element="page.main.title" destination="content" before="-"/>) before the body close. Aug 28, 2017 at 12:02
  • i did but got no results.
    – Jay Kapoor
    Aug 28, 2017 at 12:05
0

Refer this

https://mage2.pro/t/topic/1990

vendor/magento/module_theme/view/frontend/layout/default.xml

change (Line no. 105)

<container name="content.top" label="Main Content Top"/>

to

<container name="content.top" label="Main Content Top" before="-"/>
1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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