Magento admin logo change!Magento2: how can i change admin logoHow to change default logo of magento admin panelModify the default admin logo in Magento 2 (login portal and backend menu)How can I customize Login Page in Magento 2?Magento 2 - Modify default Admin Logo (login and backend menu) with Custom ThemeHow can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlHow to change default logo of magento admin panelmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Logo wont change Magento 2.1.3Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2 - Change Magento Logo on the admin pageMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento2: how can i change admin logo

Unreachable code, but reachable with exception

How much attack damage does the AC boost from a shield prevent on average?

What is the chance of making a successful appeal to dismissal decision from a PhD program after failing the qualifying exam in the 2nd attempt?

Is "history" a male-biased word ("his+story")?

Making a sword in the stone, in a medieval world without magic

Why don't MCU characters ever seem to have language issues?

Accountant/ lawyer will not return my call

Is having access to past exams cheating and, if yes, could it be proven just by a good grade?

How does airport security verify that you can carry a battery bank over 100 Wh?

In the late 1940’s to early 1950’s what technology was available that could melt a LOT of ice?

Grey hair or white hair

MTG: Can I kill an opponent in response to lethal activated abilities, and not take the damage?

What does a stand alone "T" index value do?

They call me Inspector Morse

Word for a person who has no opinion about whether god exists

Space in array system equations

How do I express some one as a black person?

How could our ancestors have domesticated a solitary predator?

Why is there a voltage between the mains ground and my radiator?

Algorithm to convert a fixed-length string to the smallest possible collision-free representation?

Can't find the Shader/UVs tab

Is Gradient Descent central to every optimizer?

Should I tell my boss the work he did was worthless

My story is written in English, but is set in my home country. What language should I use for the dialogue?



Magento admin logo change!


Magento2: how can i change admin logoHow to change default logo of magento admin panelModify the default admin logo in Magento 2 (login portal and backend menu)How can I customize Login Page in Magento 2?Magento 2 - Modify default Admin Logo (login and backend menu) with Custom ThemeHow can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlHow to change default logo of magento admin panelmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Logo wont change Magento 2.1.3Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2 - Change Magento Logo on the admin pageMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento2: how can i change admin logo













4















I am trying to change Magento2.2.2 admin logo.

But no success.

This is what I have done:



This file app/design/adminhtml/XXX/yyy/theme.xml contains:



<theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/theme.xsd">
<title>Xy_Theme</title>
<parent>Magento/backend</parent>
</theme>


This file app/design/adminhtml/XXX/yyy/registration.php contains:



<?php
MagentoFrameworkComponentComponentRegistrar::register(
MagentoFrameworkComponentComponentRegistrar::THEME,
'adminhtml/XXX/yyy',
__DIR__
);


This file app/design/adminhtml/XXX/yyy/Magento_Theme/layout/default.xml contains:



<?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">
<head>
<title>Admin Title</title>
</head>
<body>
<referenceContainer name="header">
<block class="MagentoBackendBlockPageHeader" 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/my-logo.svg</argument>
<argument name="logo_alt" xsi:type="string">My Admin</argument>
</arguments>
</block>
</referenceContainer>
</body>


And finally my logo image is in
app/design/adminhtml/XXX/yyy/web/images/my-logo.svg










share|improve this question




























    4















    I am trying to change Magento2.2.2 admin logo.

    But no success.

    This is what I have done:



    This file app/design/adminhtml/XXX/yyy/theme.xml contains:



    <theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/theme.xsd">
    <title>Xy_Theme</title>
    <parent>Magento/backend</parent>
    </theme>


    This file app/design/adminhtml/XXX/yyy/registration.php contains:



    <?php
    MagentoFrameworkComponentComponentRegistrar::register(
    MagentoFrameworkComponentComponentRegistrar::THEME,
    'adminhtml/XXX/yyy',
    __DIR__
    );


    This file app/design/adminhtml/XXX/yyy/Magento_Theme/layout/default.xml contains:



    <?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">
    <head>
    <title>Admin Title</title>
    </head>
    <body>
    <referenceContainer name="header">
    <block class="MagentoBackendBlockPageHeader" 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/my-logo.svg</argument>
    <argument name="logo_alt" xsi:type="string">My Admin</argument>
    </arguments>
    </block>
    </referenceContainer>
    </body>


    And finally my logo image is in
    app/design/adminhtml/XXX/yyy/web/images/my-logo.svg










    share|improve this question


























      4












      4








      4








      I am trying to change Magento2.2.2 admin logo.

      But no success.

      This is what I have done:



      This file app/design/adminhtml/XXX/yyy/theme.xml contains:



      <theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/theme.xsd">
      <title>Xy_Theme</title>
      <parent>Magento/backend</parent>
      </theme>


      This file app/design/adminhtml/XXX/yyy/registration.php contains:



      <?php
      MagentoFrameworkComponentComponentRegistrar::register(
      MagentoFrameworkComponentComponentRegistrar::THEME,
      'adminhtml/XXX/yyy',
      __DIR__
      );


      This file app/design/adminhtml/XXX/yyy/Magento_Theme/layout/default.xml contains:



      <?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">
      <head>
      <title>Admin Title</title>
      </head>
      <body>
      <referenceContainer name="header">
      <block class="MagentoBackendBlockPageHeader" 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/my-logo.svg</argument>
      <argument name="logo_alt" xsi:type="string">My Admin</argument>
      </arguments>
      </block>
      </referenceContainer>
      </body>


      And finally my logo image is in
      app/design/adminhtml/XXX/yyy/web/images/my-logo.svg










      share|improve this question
















      I am trying to change Magento2.2.2 admin logo.

      But no success.

      This is what I have done:



      This file app/design/adminhtml/XXX/yyy/theme.xml contains:



      <theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/theme.xsd">
      <title>Xy_Theme</title>
      <parent>Magento/backend</parent>
      </theme>


      This file app/design/adminhtml/XXX/yyy/registration.php contains:



      <?php
      MagentoFrameworkComponentComponentRegistrar::register(
      MagentoFrameworkComponentComponentRegistrar::THEME,
      'adminhtml/XXX/yyy',
      __DIR__
      );


      This file app/design/adminhtml/XXX/yyy/Magento_Theme/layout/default.xml contains:



      <?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">
      <head>
      <title>Admin Title</title>
      </head>
      <body>
      <referenceContainer name="header">
      <block class="MagentoBackendBlockPageHeader" 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/my-logo.svg</argument>
      <argument name="logo_alt" xsi:type="string">My Admin</argument>
      </arguments>
      </block>
      </referenceContainer>
      </body>


      And finally my logo image is in
      app/design/adminhtml/XXX/yyy/web/images/my-logo.svg







      magento2 magento-2.1






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited May 14 '18 at 4:54









      Teja Bhagavan Kollepara

      2,98141947




      2,98141947










      asked Dec 16 '17 at 12:45









      AmandaAmanda

      212




      212




















          1 Answer
          1






          active

          oldest

          votes


















          5














          Try this code:




          1. app/code/[VendorName]/[ModuleName]/registration.php



          <?php MagentoFrameworkComponentComponentRegistrar::register(
          MagentoFrameworkComponentComponentRegistrar::MODULE,
          '[VendorName]_[ModuleName]',
          __DIR__
          );?>



          1. app/code/[VendorName]/[ModuleName]/etc/module.xml



          <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
          <module name="[VendorName]_[ModuleName]" setup_version="1.0.0">
          <sequence>
          <module name="Magento_Theme"/>
          </sequence>
          </module>
          </config>



          1. app/code/[VendorName]/[ModuleName]/etc/di.xml



          <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
          <type name="MagentoThemeModelViewDesign">
          <arguments>
          <argument name="themes" xsi:type="array">
          <item name="adminhtml" xsi:type="string">[VendorName]/[themename]</item>
          </argument>
          </arguments>
          </type>
          </config>



          1. app/design/adminhtml/[VendorName]/[themename]/registration.php



          <?php MagentoFrameworkComponentComponentRegistrar::register(
          MagentoFrameworkComponentComponentRegistrar::THEME,
          'adminhtml/[VendorName]/[themename]',
          __DIR__
          );?>



          1. app/design/adminhtml/[VendorName]/[themename]/theme.xml



          <theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/theme.xsd">
          <title>Theme Title</title>
          <parent>Magento/backend</parent>
          </theme>



          1. app/design/adminhtml/[VendorName]/[themename]/Magento_Backend/layout/admin_login.xml



          <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="admin-login" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
          <update handle="styles" />
          <body>
          <referenceBlock name="logo">
          <arguments>
          <argument name="logo_image_src" xsi:type="string">images/login-logo.svg</argument>
          </arguments>
          </referenceBlock>
          </body>
          </page>



          1. app/design/adminhtml/[VendorName]/[themename]/web/images/login-logo.svg

          2. app/design/adminhtml/[VendorName]/[themename]/Magento_Backend/layout/default.xml



          <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
          <body>
          <referenceContainer name="header">
          <referenceBlock name="logo">
          <arguments>
          <argument name="logo_img_width" xsi:type="number">300</argument>
          <argument name="logo_img_height" xsi:type="number">300</argument>
          <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/menu-logo.svg</argument>
          </arguments>
          </referenceBlock>
          </referenceContainer>
          </body>
          </page>



          1. app/design/adminhtml/[VendorName]/[themename]/web/images/menu-logo.svg

          2. Magento CLI



          php bin/magento setup:upgrade
          php bin/magento setup:di:compile


          Note:



          1. For Admin login page logo change, follow steps - 6 & 7

          2. For Admin menu
            logo change, follow steps - 8 & 9

          Note:
          Feel free to use PNG files instead of SVG for logo.



          Note:
          If changes not reflected on Admin pages then try below steps:




          1. Uninstall a manually added theme



            • mysql -u <user> -p -e "delete from <dbname>.theme where theme_path ='<VendorName>/<themename>' AND area ='adminhtml' limit 1"



          2. Upgrades the Magento application, DB data, and schema



            • php bin/magento setup:upgrade

            • php bin/magento setup:di:compile - (Optional)


            • php bin/magento setup:static-content:deploy -f

            • php bin/magento c:c && php bin/magento c:f






          share|improve this answer

























          • Is it necessary to create app/code/[VendorName]/[ModuleName] ? Only creating adminhtml theme won't work ?

            – Slimshadddyyy
            Jan 3 '18 at 8:29











          • @Vikram - To create admin theme, first you need to register it. For more detail, check links: Create an Admin theme & Apply an Admin theme.

            – Pratik Oza
            Jan 3 '18 at 11:52











          • magento.stackexchange.com/questions/207833/…

            – Slimshadddyyy
            Jan 3 '18 at 11:55










          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "479"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f206100%2fmagento-admin-logo-change%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          5














          Try this code:




          1. app/code/[VendorName]/[ModuleName]/registration.php



          <?php MagentoFrameworkComponentComponentRegistrar::register(
          MagentoFrameworkComponentComponentRegistrar::MODULE,
          '[VendorName]_[ModuleName]',
          __DIR__
          );?>



          1. app/code/[VendorName]/[ModuleName]/etc/module.xml



          <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
          <module name="[VendorName]_[ModuleName]" setup_version="1.0.0">
          <sequence>
          <module name="Magento_Theme"/>
          </sequence>
          </module>
          </config>



          1. app/code/[VendorName]/[ModuleName]/etc/di.xml



          <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
          <type name="MagentoThemeModelViewDesign">
          <arguments>
          <argument name="themes" xsi:type="array">
          <item name="adminhtml" xsi:type="string">[VendorName]/[themename]</item>
          </argument>
          </arguments>
          </type>
          </config>



          1. app/design/adminhtml/[VendorName]/[themename]/registration.php



          <?php MagentoFrameworkComponentComponentRegistrar::register(
          MagentoFrameworkComponentComponentRegistrar::THEME,
          'adminhtml/[VendorName]/[themename]',
          __DIR__
          );?>



          1. app/design/adminhtml/[VendorName]/[themename]/theme.xml



          <theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/theme.xsd">
          <title>Theme Title</title>
          <parent>Magento/backend</parent>
          </theme>



          1. app/design/adminhtml/[VendorName]/[themename]/Magento_Backend/layout/admin_login.xml



          <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="admin-login" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
          <update handle="styles" />
          <body>
          <referenceBlock name="logo">
          <arguments>
          <argument name="logo_image_src" xsi:type="string">images/login-logo.svg</argument>
          </arguments>
          </referenceBlock>
          </body>
          </page>



          1. app/design/adminhtml/[VendorName]/[themename]/web/images/login-logo.svg

          2. app/design/adminhtml/[VendorName]/[themename]/Magento_Backend/layout/default.xml



          <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
          <body>
          <referenceContainer name="header">
          <referenceBlock name="logo">
          <arguments>
          <argument name="logo_img_width" xsi:type="number">300</argument>
          <argument name="logo_img_height" xsi:type="number">300</argument>
          <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/menu-logo.svg</argument>
          </arguments>
          </referenceBlock>
          </referenceContainer>
          </body>
          </page>



          1. app/design/adminhtml/[VendorName]/[themename]/web/images/menu-logo.svg

          2. Magento CLI



          php bin/magento setup:upgrade
          php bin/magento setup:di:compile


          Note:



          1. For Admin login page logo change, follow steps - 6 & 7

          2. For Admin menu
            logo change, follow steps - 8 & 9

          Note:
          Feel free to use PNG files instead of SVG for logo.



          Note:
          If changes not reflected on Admin pages then try below steps:




          1. Uninstall a manually added theme



            • mysql -u <user> -p -e "delete from <dbname>.theme where theme_path ='<VendorName>/<themename>' AND area ='adminhtml' limit 1"



          2. Upgrades the Magento application, DB data, and schema



            • php bin/magento setup:upgrade

            • php bin/magento setup:di:compile - (Optional)


            • php bin/magento setup:static-content:deploy -f

            • php bin/magento c:c && php bin/magento c:f






          share|improve this answer

























          • Is it necessary to create app/code/[VendorName]/[ModuleName] ? Only creating adminhtml theme won't work ?

            – Slimshadddyyy
            Jan 3 '18 at 8:29











          • @Vikram - To create admin theme, first you need to register it. For more detail, check links: Create an Admin theme & Apply an Admin theme.

            – Pratik Oza
            Jan 3 '18 at 11:52











          • magento.stackexchange.com/questions/207833/…

            – Slimshadddyyy
            Jan 3 '18 at 11:55















          5














          Try this code:




          1. app/code/[VendorName]/[ModuleName]/registration.php



          <?php MagentoFrameworkComponentComponentRegistrar::register(
          MagentoFrameworkComponentComponentRegistrar::MODULE,
          '[VendorName]_[ModuleName]',
          __DIR__
          );?>



          1. app/code/[VendorName]/[ModuleName]/etc/module.xml



          <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
          <module name="[VendorName]_[ModuleName]" setup_version="1.0.0">
          <sequence>
          <module name="Magento_Theme"/>
          </sequence>
          </module>
          </config>



          1. app/code/[VendorName]/[ModuleName]/etc/di.xml



          <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
          <type name="MagentoThemeModelViewDesign">
          <arguments>
          <argument name="themes" xsi:type="array">
          <item name="adminhtml" xsi:type="string">[VendorName]/[themename]</item>
          </argument>
          </arguments>
          </type>
          </config>



          1. app/design/adminhtml/[VendorName]/[themename]/registration.php



          <?php MagentoFrameworkComponentComponentRegistrar::register(
          MagentoFrameworkComponentComponentRegistrar::THEME,
          'adminhtml/[VendorName]/[themename]',
          __DIR__
          );?>



          1. app/design/adminhtml/[VendorName]/[themename]/theme.xml



          <theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/theme.xsd">
          <title>Theme Title</title>
          <parent>Magento/backend</parent>
          </theme>



          1. app/design/adminhtml/[VendorName]/[themename]/Magento_Backend/layout/admin_login.xml



          <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="admin-login" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
          <update handle="styles" />
          <body>
          <referenceBlock name="logo">
          <arguments>
          <argument name="logo_image_src" xsi:type="string">images/login-logo.svg</argument>
          </arguments>
          </referenceBlock>
          </body>
          </page>



          1. app/design/adminhtml/[VendorName]/[themename]/web/images/login-logo.svg

          2. app/design/adminhtml/[VendorName]/[themename]/Magento_Backend/layout/default.xml



          <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
          <body>
          <referenceContainer name="header">
          <referenceBlock name="logo">
          <arguments>
          <argument name="logo_img_width" xsi:type="number">300</argument>
          <argument name="logo_img_height" xsi:type="number">300</argument>
          <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/menu-logo.svg</argument>
          </arguments>
          </referenceBlock>
          </referenceContainer>
          </body>
          </page>



          1. app/design/adminhtml/[VendorName]/[themename]/web/images/menu-logo.svg

          2. Magento CLI



          php bin/magento setup:upgrade
          php bin/magento setup:di:compile


          Note:



          1. For Admin login page logo change, follow steps - 6 & 7

          2. For Admin menu
            logo change, follow steps - 8 & 9

          Note:
          Feel free to use PNG files instead of SVG for logo.



          Note:
          If changes not reflected on Admin pages then try below steps:




          1. Uninstall a manually added theme



            • mysql -u <user> -p -e "delete from <dbname>.theme where theme_path ='<VendorName>/<themename>' AND area ='adminhtml' limit 1"



          2. Upgrades the Magento application, DB data, and schema



            • php bin/magento setup:upgrade

            • php bin/magento setup:di:compile - (Optional)


            • php bin/magento setup:static-content:deploy -f

            • php bin/magento c:c && php bin/magento c:f






          share|improve this answer

























          • Is it necessary to create app/code/[VendorName]/[ModuleName] ? Only creating adminhtml theme won't work ?

            – Slimshadddyyy
            Jan 3 '18 at 8:29











          • @Vikram - To create admin theme, first you need to register it. For more detail, check links: Create an Admin theme & Apply an Admin theme.

            – Pratik Oza
            Jan 3 '18 at 11:52











          • magento.stackexchange.com/questions/207833/…

            – Slimshadddyyy
            Jan 3 '18 at 11:55













          5












          5








          5







          Try this code:




          1. app/code/[VendorName]/[ModuleName]/registration.php



          <?php MagentoFrameworkComponentComponentRegistrar::register(
          MagentoFrameworkComponentComponentRegistrar::MODULE,
          '[VendorName]_[ModuleName]',
          __DIR__
          );?>



          1. app/code/[VendorName]/[ModuleName]/etc/module.xml



          <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
          <module name="[VendorName]_[ModuleName]" setup_version="1.0.0">
          <sequence>
          <module name="Magento_Theme"/>
          </sequence>
          </module>
          </config>



          1. app/code/[VendorName]/[ModuleName]/etc/di.xml



          <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
          <type name="MagentoThemeModelViewDesign">
          <arguments>
          <argument name="themes" xsi:type="array">
          <item name="adminhtml" xsi:type="string">[VendorName]/[themename]</item>
          </argument>
          </arguments>
          </type>
          </config>



          1. app/design/adminhtml/[VendorName]/[themename]/registration.php



          <?php MagentoFrameworkComponentComponentRegistrar::register(
          MagentoFrameworkComponentComponentRegistrar::THEME,
          'adminhtml/[VendorName]/[themename]',
          __DIR__
          );?>



          1. app/design/adminhtml/[VendorName]/[themename]/theme.xml



          <theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/theme.xsd">
          <title>Theme Title</title>
          <parent>Magento/backend</parent>
          </theme>



          1. app/design/adminhtml/[VendorName]/[themename]/Magento_Backend/layout/admin_login.xml



          <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="admin-login" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
          <update handle="styles" />
          <body>
          <referenceBlock name="logo">
          <arguments>
          <argument name="logo_image_src" xsi:type="string">images/login-logo.svg</argument>
          </arguments>
          </referenceBlock>
          </body>
          </page>



          1. app/design/adminhtml/[VendorName]/[themename]/web/images/login-logo.svg

          2. app/design/adminhtml/[VendorName]/[themename]/Magento_Backend/layout/default.xml



          <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
          <body>
          <referenceContainer name="header">
          <referenceBlock name="logo">
          <arguments>
          <argument name="logo_img_width" xsi:type="number">300</argument>
          <argument name="logo_img_height" xsi:type="number">300</argument>
          <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/menu-logo.svg</argument>
          </arguments>
          </referenceBlock>
          </referenceContainer>
          </body>
          </page>



          1. app/design/adminhtml/[VendorName]/[themename]/web/images/menu-logo.svg

          2. Magento CLI



          php bin/magento setup:upgrade
          php bin/magento setup:di:compile


          Note:



          1. For Admin login page logo change, follow steps - 6 & 7

          2. For Admin menu
            logo change, follow steps - 8 & 9

          Note:
          Feel free to use PNG files instead of SVG for logo.



          Note:
          If changes not reflected on Admin pages then try below steps:




          1. Uninstall a manually added theme



            • mysql -u <user> -p -e "delete from <dbname>.theme where theme_path ='<VendorName>/<themename>' AND area ='adminhtml' limit 1"



          2. Upgrades the Magento application, DB data, and schema



            • php bin/magento setup:upgrade

            • php bin/magento setup:di:compile - (Optional)


            • php bin/magento setup:static-content:deploy -f

            • php bin/magento c:c && php bin/magento c:f






          share|improve this answer















          Try this code:




          1. app/code/[VendorName]/[ModuleName]/registration.php



          <?php MagentoFrameworkComponentComponentRegistrar::register(
          MagentoFrameworkComponentComponentRegistrar::MODULE,
          '[VendorName]_[ModuleName]',
          __DIR__
          );?>



          1. app/code/[VendorName]/[ModuleName]/etc/module.xml



          <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
          <module name="[VendorName]_[ModuleName]" setup_version="1.0.0">
          <sequence>
          <module name="Magento_Theme"/>
          </sequence>
          </module>
          </config>



          1. app/code/[VendorName]/[ModuleName]/etc/di.xml



          <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
          <type name="MagentoThemeModelViewDesign">
          <arguments>
          <argument name="themes" xsi:type="array">
          <item name="adminhtml" xsi:type="string">[VendorName]/[themename]</item>
          </argument>
          </arguments>
          </type>
          </config>



          1. app/design/adminhtml/[VendorName]/[themename]/registration.php



          <?php MagentoFrameworkComponentComponentRegistrar::register(
          MagentoFrameworkComponentComponentRegistrar::THEME,
          'adminhtml/[VendorName]/[themename]',
          __DIR__
          );?>



          1. app/design/adminhtml/[VendorName]/[themename]/theme.xml



          <theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/theme.xsd">
          <title>Theme Title</title>
          <parent>Magento/backend</parent>
          </theme>



          1. app/design/adminhtml/[VendorName]/[themename]/Magento_Backend/layout/admin_login.xml



          <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="admin-login" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
          <update handle="styles" />
          <body>
          <referenceBlock name="logo">
          <arguments>
          <argument name="logo_image_src" xsi:type="string">images/login-logo.svg</argument>
          </arguments>
          </referenceBlock>
          </body>
          </page>



          1. app/design/adminhtml/[VendorName]/[themename]/web/images/login-logo.svg

          2. app/design/adminhtml/[VendorName]/[themename]/Magento_Backend/layout/default.xml



          <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
          <body>
          <referenceContainer name="header">
          <referenceBlock name="logo">
          <arguments>
          <argument name="logo_img_width" xsi:type="number">300</argument>
          <argument name="logo_img_height" xsi:type="number">300</argument>
          <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/menu-logo.svg</argument>
          </arguments>
          </referenceBlock>
          </referenceContainer>
          </body>
          </page>



          1. app/design/adminhtml/[VendorName]/[themename]/web/images/menu-logo.svg

          2. Magento CLI



          php bin/magento setup:upgrade
          php bin/magento setup:di:compile


          Note:



          1. For Admin login page logo change, follow steps - 6 & 7

          2. For Admin menu
            logo change, follow steps - 8 & 9

          Note:
          Feel free to use PNG files instead of SVG for logo.



          Note:
          If changes not reflected on Admin pages then try below steps:




          1. Uninstall a manually added theme



            • mysql -u <user> -p -e "delete from <dbname>.theme where theme_path ='<VendorName>/<themename>' AND area ='adminhtml' limit 1"



          2. Upgrades the Magento application, DB data, and schema



            • php bin/magento setup:upgrade

            • php bin/magento setup:di:compile - (Optional)


            • php bin/magento setup:static-content:deploy -f

            • php bin/magento c:c && php bin/magento c:f







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 11 hours ago









          Srinivasan Lakshmanan

          1034




          1034










          answered Dec 17 '17 at 5:59









          Pratik OzaPratik Oza

          2,071411




          2,071411












          • Is it necessary to create app/code/[VendorName]/[ModuleName] ? Only creating adminhtml theme won't work ?

            – Slimshadddyyy
            Jan 3 '18 at 8:29











          • @Vikram - To create admin theme, first you need to register it. For more detail, check links: Create an Admin theme & Apply an Admin theme.

            – Pratik Oza
            Jan 3 '18 at 11:52











          • magento.stackexchange.com/questions/207833/…

            – Slimshadddyyy
            Jan 3 '18 at 11:55

















          • Is it necessary to create app/code/[VendorName]/[ModuleName] ? Only creating adminhtml theme won't work ?

            – Slimshadddyyy
            Jan 3 '18 at 8:29











          • @Vikram - To create admin theme, first you need to register it. For more detail, check links: Create an Admin theme & Apply an Admin theme.

            – Pratik Oza
            Jan 3 '18 at 11:52











          • magento.stackexchange.com/questions/207833/…

            – Slimshadddyyy
            Jan 3 '18 at 11:55
















          Is it necessary to create app/code/[VendorName]/[ModuleName] ? Only creating adminhtml theme won't work ?

          – Slimshadddyyy
          Jan 3 '18 at 8:29





          Is it necessary to create app/code/[VendorName]/[ModuleName] ? Only creating adminhtml theme won't work ?

          – Slimshadddyyy
          Jan 3 '18 at 8:29













          @Vikram - To create admin theme, first you need to register it. For more detail, check links: Create an Admin theme & Apply an Admin theme.

          – Pratik Oza
          Jan 3 '18 at 11:52





          @Vikram - To create admin theme, first you need to register it. For more detail, check links: Create an Admin theme & Apply an Admin theme.

          – Pratik Oza
          Jan 3 '18 at 11:52













          magento.stackexchange.com/questions/207833/…

          – Slimshadddyyy
          Jan 3 '18 at 11:55





          magento.stackexchange.com/questions/207833/…

          – Slimshadddyyy
          Jan 3 '18 at 11:55

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Magento Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f206100%2fmagento-admin-logo-change%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Magento 2 duplicate PHPSESSID cookie when using session_start() in custom php scriptMagento 2: User cant logged in into to account page, no error showing!Magento duplicate on subdomainGrabbing storeview from cookie (after using language selector)How do I run php custom script on magento2Magento 2: Include PHP script in headerSession lock after using Cm_RedisSessionscript php to update stockMagento set cookie popupMagento 2 session id cookie - where to find it?How to import Configurable product from csv with custom attributes using php scriptMagento 2 run custom PHP script

          Can not update quote_id field of “quote_item” table magento 2Magento 2.1 - We can't remove the item. (Shopping Cart doesnt allow us to remove items before becomes empty)Add value for custom quote item attribute using REST apiREST API endpoint v1/carts/cartId/items always returns error messageCorrect way to save entries to databaseHow to remove all associated quote objects of a customer completelyMagento 2 - Save value from custom input field to quote_itemGet quote_item data using quote id and product id filter in Magento 2How to set additional data to quote_item table from controller in Magento 2?What is the purpose of additional_data column in quote_item table in magento2Set Custom Price to Quote item magento2 from controller

          How to solve knockout JS error in Magento 2 Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?(Magento2) knockout.js:3012 Uncaught ReferenceError: Unable to process bindingUnable to process binding Knockout.js magento 2Cannot read property `scopeLabel` of undefined on Product Detail PageCan't get Customer Data on frontend in Magento 2Magento2 Order Summary - unable to process bindingKO templates are not loading in Magento 2.1 applicationgetting knockout js error magento 2Product grid not load -— Unable to process binding Knockout.js magento 2Product form not loaded in magento2Uncaught ReferenceError: Unable to process binding “if: function()return (isShowLegend()) ” magento 2