1

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?

Thanks

1
  • 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
1

copy below file

/vendor/magento/module-contact/view/frontend/templates/form.phtml

add this file below location

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

after call static block

<?php echo $this->getLayout()
          ->createBlock('Magento\Cms\Block\Block')
          ->setBlockId('your_block_identifier')
          ->toHtml();

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

3
  • 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.