Magento 2 - Customize contact us page
-
26-02-2021 - |
Question
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
Solution
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
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange