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


1 Answer 1


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">
        <argument name="template" xsi:type="string">[VendorName]_[ModuleName]::footer.phtml</argument>

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

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