How To Change Default Magento 2 Admin Logo  In Magento 2

Hello Everyone,

In this blog, we will learn about how to change the default Admin Logo in Magento 2.

By default the admin panel shows the Magento 2 logo in two places: first is the login page and second is the menu bar.

Without wasting your time, let us guide you straight away. Follow the easy step given below to Change Default Admin Logo in Magento 2.

STEPS FOR CHANGE DEFAULT ADMIN LOGO IN MAGENTO 2

Magento 2 Admin Login Page:

Step 1: Create admin_login.xml file

app/code/Vendor/Extension/view/adminhtml/layout/admin_login.xml

<?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/magecurious-logo.png</argument>

            </arguments>

        </referenceBlock>

    </body>

</page>

Step 2: Upload image in below path

vendor/magento/theme-adminhtml-backend/web/images/magecurious-logo.png

Step 3: Finally run the below commands

$ php bin/magento cache:clean

$ php bin/magento cache:flush

Step 4: Output:

Magento 2 Admin Menu Bar:

Step 1: Create default.xml file

app/code/Vendor/Extension/view/adminhtml/layout/default.xml

<?xml version="1.0"?>

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="admin-1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">

    <body>

        <referenceContainer name="header">

            <block class="Magento\Backend\Block\Page\Header" name="logo" before="-">

                <arguments>

                    <argument name="show_part" xsi:type="string">logo</argument>

                    <argument name="edition" translate="true" xsi:type="string">Community Edition</argument>

                    <argument name="logo_image_src" xsi:type="string">images/magecurious-logo.png</argument>

                </arguments>

            </block>

        </referenceContainer>

    </body>

</page>

Step 2: Upload image in below path

vendor/magento/theme-adminhtml-backend/web/images/magecurious-logo.png

Step 3: Finally run the below commands

$ php bin/magento cache:clean

$ php bin/magento cache:flush

Step 4: Output:

Final Thoughts:

So this was the easiest way which we have told you in this blog. This is how you can Change default Magento 2 logo in the Admin Panel in Magento 2. Hope you liked the blog.

So quickly go to the comment box and tell me how you like this blog?

Stay tuned with us on our site to get new updates of Magento.

Thanks for reading and visiting our site.   

How useful was this post?

Click on a star to rate it!

Average rating 5 / 5. Vote count: 1

No votes so far! Be the first to rate this post.

Leave a Reply

Your email address will not be published. Required fields are marked *