-2

How to replace or overwrite the footer phtml file without changing the core file of Magento 2?

2

You can use layout mechanism for this.

Create file [VendorName]/[ModuleName]/view/adminhtml/layout/default.xml

<?xml version="1.0"?>
<layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/layout_generic.xsd">
    <referenceBlock name="version">
       <arguments>
        <argument name="template" xsi:type="string">[VendorName]_[ModuleName]::footer.phtml</argument>
       </arguments>
    </referenceBlock>
</layout>

now you can create file [VendorName]/[ModuleName]/view/adminhtml/templates/footer.phtml and add you content

| improve this answer | |

Not the answer you're looking for? Browse other questions tagged or ask your own question.