In this tutorial, Today I will explain to how to change default logo of admin in Magento 2. By default, it’s display Magento 2 official logo. But, now user want to change default logo and set there custom logo in admin login screen then, you need to follow the some steps to customize.
You may also like this :
1) For that, You need to create app/design/adminhtml/Vendor/Theme/Magento_Backend/layout/admin_login.xml and paste the below code:
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="admin-login"
xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock name="logo">
<arguments>
<argument name="logo_image_src" xsi:type="string">images/admin-custom-logo.png</argument>
</arguments>
</referenceBlock>
</body>
</page>
logo_image_src argument is used to set your custom admin login image path. So, I set admin-custom-logo.png path set as my custom admin login image in above xml. You can set based on your requirement.
2) Now, Make sure admin-custom-logo.png file available on app/design/adminhtml/Vendor/Theme/web/images/ this path.
That’s it !!!
Now, You can see change logo in login screen and dashboard panel.
I hope this blog is easy to understand about how to change default logo of admin in Magento 2. In case, I missed anything or need to add some information, always feel free to leave a comment in this blog, I’ll get back with proper solution.
Keep liking and sharing !!