I want to add MAP in contact us page. To do this I want to override it's phtml.

How can I get it's phtml and how can I override it?


  • 1
    You may not have to override the template , You can use update handle and add your block to existing template Apr 16 '19 at 5:40

copy below file


add this file below location

app/design/frontend/[vendor]/[Your Theme]/Magento_Contact/templates/form.phtml

after call static block

<?php echo $this->getLayout()

here create static block in admin and block id is 'your_block_identifier' and add map

  • Sure, I was about to do it :) Apr 16 '19 at 5:58
  • I really appreciate you took time to answer my question :) Apr 16 '19 at 5:58
  • my pleasure.... @MuhammadAnas Apr 16 '19 at 5:59

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.