1

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.

  • show you customer_account.xml code. – Suresh Chikani Aug 28 '17 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. – Mohammed Joraid Jul 24 '18 at 8:57
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.

  • 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 '17 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" – Sheshgiri Anvekar Aug 28 '17 at 11:56
  • version is 2.1.7 and i dont think i have modified any layout or what – Jay Kapoor Aug 28 '17 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. – Sheshgiri Anvekar Aug 28 '17 at 12:02
  • i did but got no results. – Jay Kapoor Aug 28 '17 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="-"/>

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.