How to move success (not error) message into contact form? enter image description here

1 Answer 1


hello dear I will implement your functionality in my project. please check the below code with the screenshot.

Please go to your theme directory


  1. The above path "customtheme" is my theme name so please go to your theme. after in theme created a new folder "Magento_Contact"

  2. this Magento_Contact folder created a new folder "layout" and in this folder created a new file contact_index_index.xml

Please add below code your new file contact_index_index.xml

this XML file in the body section adds the below code.

 <move element="page.messages" destination="page.wrapper" before="footer-container" />

enter image description here

enter image description here

I hope this solution works. so please accept my answer and give an upvote.

  • Sorry, but this doesn't work for me :( Feb 10 at 21:03
  • ok means you want only the error message shown on the above footer and success message shown on the columns' top.? Feb 12 at 5:33
  • I want to show success and error messages under the button submit which is into contact form. For now all messages are showed on the top of the page as you can see in my example Feb 12 at 6:29
  • ok I understand you can go with the jQuery only contact page. Feb 12 at 10:25
  • because I will share the code for this work for div. container wise. not any particular div add you want to. so, please you may go with jQuery. Feb 12 at 12:00

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.