Modify the default admin logo in Magento 2 (login portal and backend menu)
I would like to change both the logo in the login admin portal and the Magento icon at the top left of the admin menu.
What is the easiest way to do that, according images I want to upload are PNG files (I am not familiar with SVG format)
Thanks for your help.
magento2 adminhtml backend
add a comment |
I would like to change both the logo in the login admin portal and the Magento icon at the top left of the admin menu.
What is the easiest way to do that, according images I want to upload are PNG files (I am not familiar with SVG format)
Thanks for your help.
magento2 adminhtml backend
To modify the default admin logo with custom theme, check here.
– Pratik Oza
Dec 17 '17 at 6:44
add a comment |
I would like to change both the logo in the login admin portal and the Magento icon at the top left of the admin menu.
What is the easiest way to do that, according images I want to upload are PNG files (I am not familiar with SVG format)
Thanks for your help.
magento2 adminhtml backend
I would like to change both the logo in the login admin portal and the Magento icon at the top left of the admin menu.
What is the easiest way to do that, according images I want to upload are PNG files (I am not familiar with SVG format)
Thanks for your help.
magento2 adminhtml backend
magento2 adminhtml backend
asked Jan 13 '16 at 1:36
JukemaxJukemax
4916
4916
To modify the default admin logo with custom theme, check here.
– Pratik Oza
Dec 17 '17 at 6:44
add a comment |
To modify the default admin logo with custom theme, check here.
– Pratik Oza
Dec 17 '17 at 6:44
To modify the default admin logo with custom theme, check here.
– Pratik Oza
Dec 17 '17 at 6:44
To modify the default admin logo with custom theme, check here.
– Pratik Oza
Dec 17 '17 at 6:44
add a comment |
3 Answers
3
active
oldest
votes
In order to change top left logo of the admin menu you have to create in your custom module view/adminhtml/layout/default.xml
file:
<?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="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/custom-admin-icon.svg</argument>
</arguments>
</block>
</referenceContainer>
</body>
</page>
Place custom-admin-icon.svg
with height 25px and width 41px into CustomModule/view/web/images/custom-admin-icon.svg
For the Admin Login page create new view/adminhtml/layout/admin_login.xml
file:
<?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/custom-admin-logo.svg</argument>
</arguments>
</referenceBlock>
</body>
Feel free to use PNG files instead of SVG.
I placed my custom Icon in my custom module at the location you specified, but after uploading and clearing all caches, generation and pub/static, I only get the error image not found in pub/static/adminhtml/Magento/backend/en_US/images, so the generator is not placing the image where magento expects it to be. I've followed your instructions exactly, could there be something missing?
– Jonathan Eltgroth
Jun 27 '16 at 15:38
Can you please provide full path of the image and full path of the layout file? Also, do you run in developer mode? Thanks
– Max Pronko
Jun 27 '16 at 18:10
I have the image in the custom module atapp/code/Metal/Backend/view/web/images/logo_288x16.png
and the layout file is atapp/code/Metal/Backend/view/adminhtml/layout/admin_login.xml
. The file matches the block of code above except for the filepath in the argument, which isimages/logo_288x16.png
. This results is Magento correctly looking for my image, but it seems that magento expects it to be in the backend theme directory, not the custom modules, hence my confusion.
– Jonathan Eltgroth
Jun 28 '16 at 13:43
@MaxPronko can not we do it using custom theme or is it necessary to create custom module ? - magento.stackexchange.com/questions/207833/…
– Slimshadddyyy
Jan 3 '18 at 8:36
add a comment |
There are 2 small changes in 'Max Pronko' module:
1) Add Namespace_Modulename
before image path
<?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">Namespace_Modulename/images/custom-admin-logo.svg</argument>
</arguments>
</referenceBlock>
</body>
2) And change directory: CustomModule/view/web/images/custom-admin-icon.svg
to
CustomModule/view/adminhtml/web/images/custom-admin-icon.svg
Hello @Gmb, I have created both files in my custom module and also update your changes and clean cache also but still showing magento logo.
– Vinaya Maheshwari
Jul 4 '17 at 9:57
add a comment |
We have implemented a solution which does exactly the same. It allows you to replace the logo on the admin login page as well as on top of the admin navigation without creating a new theme. Beside that you can put a text ( e.g Implemented by Your Company ) below the Sign In button. Check out https://shop.magenizr.com/?module=1007
We simply use a helper method in order to replace the src of the logo.
<argument name="logo_image_src" xsi:type="helper" helper="VendorModuleHelperData::getAdminLogoSrc">
The above argument must be placed in VendorModuleviewadminhtmllayoutadmin_login.xml
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f96945%2fmodify-the-default-admin-logo-in-magento-2-login-portal-and-backend-menu%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
In order to change top left logo of the admin menu you have to create in your custom module view/adminhtml/layout/default.xml
file:
<?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="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/custom-admin-icon.svg</argument>
</arguments>
</block>
</referenceContainer>
</body>
</page>
Place custom-admin-icon.svg
with height 25px and width 41px into CustomModule/view/web/images/custom-admin-icon.svg
For the Admin Login page create new view/adminhtml/layout/admin_login.xml
file:
<?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/custom-admin-logo.svg</argument>
</arguments>
</referenceBlock>
</body>
Feel free to use PNG files instead of SVG.
I placed my custom Icon in my custom module at the location you specified, but after uploading and clearing all caches, generation and pub/static, I only get the error image not found in pub/static/adminhtml/Magento/backend/en_US/images, so the generator is not placing the image where magento expects it to be. I've followed your instructions exactly, could there be something missing?
– Jonathan Eltgroth
Jun 27 '16 at 15:38
Can you please provide full path of the image and full path of the layout file? Also, do you run in developer mode? Thanks
– Max Pronko
Jun 27 '16 at 18:10
I have the image in the custom module atapp/code/Metal/Backend/view/web/images/logo_288x16.png
and the layout file is atapp/code/Metal/Backend/view/adminhtml/layout/admin_login.xml
. The file matches the block of code above except for the filepath in the argument, which isimages/logo_288x16.png
. This results is Magento correctly looking for my image, but it seems that magento expects it to be in the backend theme directory, not the custom modules, hence my confusion.
– Jonathan Eltgroth
Jun 28 '16 at 13:43
@MaxPronko can not we do it using custom theme or is it necessary to create custom module ? - magento.stackexchange.com/questions/207833/…
– Slimshadddyyy
Jan 3 '18 at 8:36
add a comment |
In order to change top left logo of the admin menu you have to create in your custom module view/adminhtml/layout/default.xml
file:
<?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="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/custom-admin-icon.svg</argument>
</arguments>
</block>
</referenceContainer>
</body>
</page>
Place custom-admin-icon.svg
with height 25px and width 41px into CustomModule/view/web/images/custom-admin-icon.svg
For the Admin Login page create new view/adminhtml/layout/admin_login.xml
file:
<?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/custom-admin-logo.svg</argument>
</arguments>
</referenceBlock>
</body>
Feel free to use PNG files instead of SVG.
I placed my custom Icon in my custom module at the location you specified, but after uploading and clearing all caches, generation and pub/static, I only get the error image not found in pub/static/adminhtml/Magento/backend/en_US/images, so the generator is not placing the image where magento expects it to be. I've followed your instructions exactly, could there be something missing?
– Jonathan Eltgroth
Jun 27 '16 at 15:38
Can you please provide full path of the image and full path of the layout file? Also, do you run in developer mode? Thanks
– Max Pronko
Jun 27 '16 at 18:10
I have the image in the custom module atapp/code/Metal/Backend/view/web/images/logo_288x16.png
and the layout file is atapp/code/Metal/Backend/view/adminhtml/layout/admin_login.xml
. The file matches the block of code above except for the filepath in the argument, which isimages/logo_288x16.png
. This results is Magento correctly looking for my image, but it seems that magento expects it to be in the backend theme directory, not the custom modules, hence my confusion.
– Jonathan Eltgroth
Jun 28 '16 at 13:43
@MaxPronko can not we do it using custom theme or is it necessary to create custom module ? - magento.stackexchange.com/questions/207833/…
– Slimshadddyyy
Jan 3 '18 at 8:36
add a comment |
In order to change top left logo of the admin menu you have to create in your custom module view/adminhtml/layout/default.xml
file:
<?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="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/custom-admin-icon.svg</argument>
</arguments>
</block>
</referenceContainer>
</body>
</page>
Place custom-admin-icon.svg
with height 25px and width 41px into CustomModule/view/web/images/custom-admin-icon.svg
For the Admin Login page create new view/adminhtml/layout/admin_login.xml
file:
<?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/custom-admin-logo.svg</argument>
</arguments>
</referenceBlock>
</body>
Feel free to use PNG files instead of SVG.
In order to change top left logo of the admin menu you have to create in your custom module view/adminhtml/layout/default.xml
file:
<?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="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/custom-admin-icon.svg</argument>
</arguments>
</block>
</referenceContainer>
</body>
</page>
Place custom-admin-icon.svg
with height 25px and width 41px into CustomModule/view/web/images/custom-admin-icon.svg
For the Admin Login page create new view/adminhtml/layout/admin_login.xml
file:
<?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/custom-admin-logo.svg</argument>
</arguments>
</referenceBlock>
</body>
Feel free to use PNG files instead of SVG.
edited Mar 28 '18 at 13:18
PЯINCƏ
7,78131137
7,78131137
answered Jan 15 '16 at 22:19
Max PronkoMax Pronko
1,456817
1,456817
I placed my custom Icon in my custom module at the location you specified, but after uploading and clearing all caches, generation and pub/static, I only get the error image not found in pub/static/adminhtml/Magento/backend/en_US/images, so the generator is not placing the image where magento expects it to be. I've followed your instructions exactly, could there be something missing?
– Jonathan Eltgroth
Jun 27 '16 at 15:38
Can you please provide full path of the image and full path of the layout file? Also, do you run in developer mode? Thanks
– Max Pronko
Jun 27 '16 at 18:10
I have the image in the custom module atapp/code/Metal/Backend/view/web/images/logo_288x16.png
and the layout file is atapp/code/Metal/Backend/view/adminhtml/layout/admin_login.xml
. The file matches the block of code above except for the filepath in the argument, which isimages/logo_288x16.png
. This results is Magento correctly looking for my image, but it seems that magento expects it to be in the backend theme directory, not the custom modules, hence my confusion.
– Jonathan Eltgroth
Jun 28 '16 at 13:43
@MaxPronko can not we do it using custom theme or is it necessary to create custom module ? - magento.stackexchange.com/questions/207833/…
– Slimshadddyyy
Jan 3 '18 at 8:36
add a comment |
I placed my custom Icon in my custom module at the location you specified, but after uploading and clearing all caches, generation and pub/static, I only get the error image not found in pub/static/adminhtml/Magento/backend/en_US/images, so the generator is not placing the image where magento expects it to be. I've followed your instructions exactly, could there be something missing?
– Jonathan Eltgroth
Jun 27 '16 at 15:38
Can you please provide full path of the image and full path of the layout file? Also, do you run in developer mode? Thanks
– Max Pronko
Jun 27 '16 at 18:10
I have the image in the custom module atapp/code/Metal/Backend/view/web/images/logo_288x16.png
and the layout file is atapp/code/Metal/Backend/view/adminhtml/layout/admin_login.xml
. The file matches the block of code above except for the filepath in the argument, which isimages/logo_288x16.png
. This results is Magento correctly looking for my image, but it seems that magento expects it to be in the backend theme directory, not the custom modules, hence my confusion.
– Jonathan Eltgroth
Jun 28 '16 at 13:43
@MaxPronko can not we do it using custom theme or is it necessary to create custom module ? - magento.stackexchange.com/questions/207833/…
– Slimshadddyyy
Jan 3 '18 at 8:36
I placed my custom Icon in my custom module at the location you specified, but after uploading and clearing all caches, generation and pub/static, I only get the error image not found in pub/static/adminhtml/Magento/backend/en_US/images, so the generator is not placing the image where magento expects it to be. I've followed your instructions exactly, could there be something missing?
– Jonathan Eltgroth
Jun 27 '16 at 15:38
I placed my custom Icon in my custom module at the location you specified, but after uploading and clearing all caches, generation and pub/static, I only get the error image not found in pub/static/adminhtml/Magento/backend/en_US/images, so the generator is not placing the image where magento expects it to be. I've followed your instructions exactly, could there be something missing?
– Jonathan Eltgroth
Jun 27 '16 at 15:38
Can you please provide full path of the image and full path of the layout file? Also, do you run in developer mode? Thanks
– Max Pronko
Jun 27 '16 at 18:10
Can you please provide full path of the image and full path of the layout file? Also, do you run in developer mode? Thanks
– Max Pronko
Jun 27 '16 at 18:10
I have the image in the custom module at
app/code/Metal/Backend/view/web/images/logo_288x16.png
and the layout file is at app/code/Metal/Backend/view/adminhtml/layout/admin_login.xml
. The file matches the block of code above except for the filepath in the argument, which is images/logo_288x16.png
. This results is Magento correctly looking for my image, but it seems that magento expects it to be in the backend theme directory, not the custom modules, hence my confusion.– Jonathan Eltgroth
Jun 28 '16 at 13:43
I have the image in the custom module at
app/code/Metal/Backend/view/web/images/logo_288x16.png
and the layout file is at app/code/Metal/Backend/view/adminhtml/layout/admin_login.xml
. The file matches the block of code above except for the filepath in the argument, which is images/logo_288x16.png
. This results is Magento correctly looking for my image, but it seems that magento expects it to be in the backend theme directory, not the custom modules, hence my confusion.– Jonathan Eltgroth
Jun 28 '16 at 13:43
@MaxPronko can not we do it using custom theme or is it necessary to create custom module ? - magento.stackexchange.com/questions/207833/…
– Slimshadddyyy
Jan 3 '18 at 8:36
@MaxPronko can not we do it using custom theme or is it necessary to create custom module ? - magento.stackexchange.com/questions/207833/…
– Slimshadddyyy
Jan 3 '18 at 8:36
add a comment |
There are 2 small changes in 'Max Pronko' module:
1) Add Namespace_Modulename
before image path
<?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">Namespace_Modulename/images/custom-admin-logo.svg</argument>
</arguments>
</referenceBlock>
</body>
2) And change directory: CustomModule/view/web/images/custom-admin-icon.svg
to
CustomModule/view/adminhtml/web/images/custom-admin-icon.svg
Hello @Gmb, I have created both files in my custom module and also update your changes and clean cache also but still showing magento logo.
– Vinaya Maheshwari
Jul 4 '17 at 9:57
add a comment |
There are 2 small changes in 'Max Pronko' module:
1) Add Namespace_Modulename
before image path
<?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">Namespace_Modulename/images/custom-admin-logo.svg</argument>
</arguments>
</referenceBlock>
</body>
2) And change directory: CustomModule/view/web/images/custom-admin-icon.svg
to
CustomModule/view/adminhtml/web/images/custom-admin-icon.svg
Hello @Gmb, I have created both files in my custom module and also update your changes and clean cache also but still showing magento logo.
– Vinaya Maheshwari
Jul 4 '17 at 9:57
add a comment |
There are 2 small changes in 'Max Pronko' module:
1) Add Namespace_Modulename
before image path
<?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">Namespace_Modulename/images/custom-admin-logo.svg</argument>
</arguments>
</referenceBlock>
</body>
2) And change directory: CustomModule/view/web/images/custom-admin-icon.svg
to
CustomModule/view/adminhtml/web/images/custom-admin-icon.svg
There are 2 small changes in 'Max Pronko' module:
1) Add Namespace_Modulename
before image path
<?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">Namespace_Modulename/images/custom-admin-logo.svg</argument>
</arguments>
</referenceBlock>
</body>
2) And change directory: CustomModule/view/web/images/custom-admin-icon.svg
to
CustomModule/view/adminhtml/web/images/custom-admin-icon.svg
edited Dec 21 '17 at 11:05
Community♦
1
1
answered Aug 4 '16 at 11:39
Gopal KachaGopal Kacha
171111
171111
Hello @Gmb, I have created both files in my custom module and also update your changes and clean cache also but still showing magento logo.
– Vinaya Maheshwari
Jul 4 '17 at 9:57
add a comment |
Hello @Gmb, I have created both files in my custom module and also update your changes and clean cache also but still showing magento logo.
– Vinaya Maheshwari
Jul 4 '17 at 9:57
Hello @Gmb, I have created both files in my custom module and also update your changes and clean cache also but still showing magento logo.
– Vinaya Maheshwari
Jul 4 '17 at 9:57
Hello @Gmb, I have created both files in my custom module and also update your changes and clean cache also but still showing magento logo.
– Vinaya Maheshwari
Jul 4 '17 at 9:57
add a comment |
We have implemented a solution which does exactly the same. It allows you to replace the logo on the admin login page as well as on top of the admin navigation without creating a new theme. Beside that you can put a text ( e.g Implemented by Your Company ) below the Sign In button. Check out https://shop.magenizr.com/?module=1007
We simply use a helper method in order to replace the src of the logo.
<argument name="logo_image_src" xsi:type="helper" helper="VendorModuleHelperData::getAdminLogoSrc">
The above argument must be placed in VendorModuleviewadminhtmllayoutadmin_login.xml
add a comment |
We have implemented a solution which does exactly the same. It allows you to replace the logo on the admin login page as well as on top of the admin navigation without creating a new theme. Beside that you can put a text ( e.g Implemented by Your Company ) below the Sign In button. Check out https://shop.magenizr.com/?module=1007
We simply use a helper method in order to replace the src of the logo.
<argument name="logo_image_src" xsi:type="helper" helper="VendorModuleHelperData::getAdminLogoSrc">
The above argument must be placed in VendorModuleviewadminhtmllayoutadmin_login.xml
add a comment |
We have implemented a solution which does exactly the same. It allows you to replace the logo on the admin login page as well as on top of the admin navigation without creating a new theme. Beside that you can put a text ( e.g Implemented by Your Company ) below the Sign In button. Check out https://shop.magenizr.com/?module=1007
We simply use a helper method in order to replace the src of the logo.
<argument name="logo_image_src" xsi:type="helper" helper="VendorModuleHelperData::getAdminLogoSrc">
The above argument must be placed in VendorModuleviewadminhtmllayoutadmin_login.xml
We have implemented a solution which does exactly the same. It allows you to replace the logo on the admin login page as well as on top of the admin navigation without creating a new theme. Beside that you can put a text ( e.g Implemented by Your Company ) below the Sign In button. Check out https://shop.magenizr.com/?module=1007
We simply use a helper method in order to replace the src of the logo.
<argument name="logo_image_src" xsi:type="helper" helper="VendorModuleHelperData::getAdminLogoSrc">
The above argument must be placed in VendorModuleviewadminhtmllayoutadmin_login.xml
answered 21 mins ago
MagenizrMagenizr
112
112
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f96945%2fmodify-the-default-admin-logo-in-magento-2-login-portal-and-backend-menu%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
To modify the default admin logo with custom theme, check here.
– Pratik Oza
Dec 17 '17 at 6:44