How to Override my admin phtml and css file in my themeHow to enable custom admin theme in Magento 2Magento...

A seasonal riddle

Weird lines in Microsoft Word

Checking @@ROWCOUNT failing

"Marked down as someone wanting to sell shares." What does that mean?

What is the period/term used describe Giuseppe Arcimboldo's style of painting?

In the event of Brexit being postponed beyond the EU elections, will UK voters in EU countries be eligible to participate?

Is divisi notation needed for brass or woodwind in an orchestra?

Error in master's thesis, I do not know what to do

What is the meaning of "You've never met a graph you didn't like?"

What is the tangent at a sharp point on a curve?

What is it called when someone votes for an option that's not their first choice?

Most common words in spoken english

Trouble reading roman numeral notation with flats

Pre-Employment Background Check With Consent For Future Checks

If the Dominion rule using their Jem'Hadar troops, why is their life expectancy so low?

Would this string work as string?

Why is "la Gestapo" feminine?

Recursively move files within sub directories

1 John in Luther’s Bibel

When is the exact date for EOL of Ubuntu 14.04 LTS?

How would a solely written language work mechanically

Connection Between Knot Theory and Number Theory

How to get directions in deep space?

C++ lambda syntax



How to Override my admin phtml and css file in my theme


How to enable custom admin theme in Magento 2Magento 2: How to override adminhtml CSS?Magento2 - Override theme phtmlHow to update/customize/override Magento 2 css styleshow to automatic update file `.less` in custom theme magento2?Overriding core phtml template using theme based inheritence Magento2How to “override” default Magento2 “Luma” Theme with a Custom ThemeHow to override newsletter phtml file in magento2Not able to override phtml fileMagento 2 How to generate dynamic CSS?Override Admin theme template fileMagento2: Override default phtml file without create custom theme?













1















How to Override my Admin PHTML, XML and LESS/CSS file in my theme.



Any one have Idea ?










share|improve this question
















bumped to the homepage by Community 6 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • Create a new admin theme extending form the theme that you Want to override and the change then like we normally override

    – Vishwas Bhatnagar
    Feb 2 '17 at 5:14
















1















How to Override my Admin PHTML, XML and LESS/CSS file in my theme.



Any one have Idea ?










share|improve this question
















bumped to the homepage by Community 6 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • Create a new admin theme extending form the theme that you Want to override and the change then like we normally override

    – Vishwas Bhatnagar
    Feb 2 '17 at 5:14














1












1








1








How to Override my Admin PHTML, XML and LESS/CSS file in my theme.



Any one have Idea ?










share|improve this question
















How to Override my Admin PHTML, XML and LESS/CSS file in my theme.



Any one have Idea ?







magento2 magento-2.1 adminhtml less-css






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 2 '17 at 5:13









Vishwas Bhatnagar

2,91122045




2,91122045










asked Feb 2 '17 at 5:07









hweb87hweb87

5912724




5912724





bumped to the homepage by Community 6 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 6 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • Create a new admin theme extending form the theme that you Want to override and the change then like we normally override

    – Vishwas Bhatnagar
    Feb 2 '17 at 5:14



















  • Create a new admin theme extending form the theme that you Want to override and the change then like we normally override

    – Vishwas Bhatnagar
    Feb 2 '17 at 5:14

















Create a new admin theme extending form the theme that you Want to override and the change then like we normally override

– Vishwas Bhatnagar
Feb 2 '17 at 5:14





Create a new admin theme extending form the theme that you Want to override and the change then like we normally override

– Vishwas Bhatnagar
Feb 2 '17 at 5:14










2 Answers
2






active

oldest

votes


















0














see this link to override adminhtml theme and this link to override css,js files.






share|improve this answer

































    0














    I am assuming you need your theme specific functionality that needs changes in the Admin panel.



    Under $MAGENTO_BASE_DIR/app/code, create a Vendor>/Theme> directory. Under that create a view/adminhtml. Underneath you can the create templates directory for your phtml, layout directory for your XML and web directory Less/CSS



    Basically



    app/code/<Vendor>/<Theme>/view/adminhtml/web
    app/code/<Vendor>/<Theme>/view/adminhtml/layout
    app/code/<Vendor>/<Theme>/view/adminhtml/templates
    app/code/<Vendor>/<Theme>/view/adminhtml/ui_component


    If you are creating a new theme for the Admin, you cal follow the Magento documentation for creating admin theme






    share|improve this answer


























    • Which was the better way to override admin PHTML, XML and LESS/CSS. 1. Create new theme OR 2. Create new folder under $MAGENTO_BASE_DIR/app/code,

      – hweb87
      Feb 2 '17 at 6:29











    • That depends on your situation. If I am writing functionality, say for example megamenu and providing configuration options under MegaMenu in AdminHtml specifically for my extension, then I will use the new folder under app/code/Vendor/Theme option. On the other hand if I am changing the existing admin options, I will go with creating new admin theme and overriding the way we normally override.

      – rajeshrajan
      Feb 2 '17 at 7:26













    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%2f157573%2fhow-to-override-my-admin-phtml-and-css-file-in-my-theme%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    see this link to override adminhtml theme and this link to override css,js files.






    share|improve this answer






























      0














      see this link to override adminhtml theme and this link to override css,js files.






      share|improve this answer




























        0












        0








        0







        see this link to override adminhtml theme and this link to override css,js files.






        share|improve this answer















        see this link to override adminhtml theme and this link to override css,js files.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Apr 13 '17 at 12:55









        Community

        1




        1










        answered Feb 2 '17 at 5:26









        Shahzaib Hayat KhanShahzaib Hayat Khan

        29615




        29615

























            0














            I am assuming you need your theme specific functionality that needs changes in the Admin panel.



            Under $MAGENTO_BASE_DIR/app/code, create a Vendor>/Theme> directory. Under that create a view/adminhtml. Underneath you can the create templates directory for your phtml, layout directory for your XML and web directory Less/CSS



            Basically



            app/code/<Vendor>/<Theme>/view/adminhtml/web
            app/code/<Vendor>/<Theme>/view/adminhtml/layout
            app/code/<Vendor>/<Theme>/view/adminhtml/templates
            app/code/<Vendor>/<Theme>/view/adminhtml/ui_component


            If you are creating a new theme for the Admin, you cal follow the Magento documentation for creating admin theme






            share|improve this answer


























            • Which was the better way to override admin PHTML, XML and LESS/CSS. 1. Create new theme OR 2. Create new folder under $MAGENTO_BASE_DIR/app/code,

              – hweb87
              Feb 2 '17 at 6:29











            • That depends on your situation. If I am writing functionality, say for example megamenu and providing configuration options under MegaMenu in AdminHtml specifically for my extension, then I will use the new folder under app/code/Vendor/Theme option. On the other hand if I am changing the existing admin options, I will go with creating new admin theme and overriding the way we normally override.

              – rajeshrajan
              Feb 2 '17 at 7:26


















            0














            I am assuming you need your theme specific functionality that needs changes in the Admin panel.



            Under $MAGENTO_BASE_DIR/app/code, create a Vendor>/Theme> directory. Under that create a view/adminhtml. Underneath you can the create templates directory for your phtml, layout directory for your XML and web directory Less/CSS



            Basically



            app/code/<Vendor>/<Theme>/view/adminhtml/web
            app/code/<Vendor>/<Theme>/view/adminhtml/layout
            app/code/<Vendor>/<Theme>/view/adminhtml/templates
            app/code/<Vendor>/<Theme>/view/adminhtml/ui_component


            If you are creating a new theme for the Admin, you cal follow the Magento documentation for creating admin theme






            share|improve this answer


























            • Which was the better way to override admin PHTML, XML and LESS/CSS. 1. Create new theme OR 2. Create new folder under $MAGENTO_BASE_DIR/app/code,

              – hweb87
              Feb 2 '17 at 6:29











            • That depends on your situation. If I am writing functionality, say for example megamenu and providing configuration options under MegaMenu in AdminHtml specifically for my extension, then I will use the new folder under app/code/Vendor/Theme option. On the other hand if I am changing the existing admin options, I will go with creating new admin theme and overriding the way we normally override.

              – rajeshrajan
              Feb 2 '17 at 7:26
















            0












            0








            0







            I am assuming you need your theme specific functionality that needs changes in the Admin panel.



            Under $MAGENTO_BASE_DIR/app/code, create a Vendor>/Theme> directory. Under that create a view/adminhtml. Underneath you can the create templates directory for your phtml, layout directory for your XML and web directory Less/CSS



            Basically



            app/code/<Vendor>/<Theme>/view/adminhtml/web
            app/code/<Vendor>/<Theme>/view/adminhtml/layout
            app/code/<Vendor>/<Theme>/view/adminhtml/templates
            app/code/<Vendor>/<Theme>/view/adminhtml/ui_component


            If you are creating a new theme for the Admin, you cal follow the Magento documentation for creating admin theme






            share|improve this answer















            I am assuming you need your theme specific functionality that needs changes in the Admin panel.



            Under $MAGENTO_BASE_DIR/app/code, create a Vendor>/Theme> directory. Under that create a view/adminhtml. Underneath you can the create templates directory for your phtml, layout directory for your XML and web directory Less/CSS



            Basically



            app/code/<Vendor>/<Theme>/view/adminhtml/web
            app/code/<Vendor>/<Theme>/view/adminhtml/layout
            app/code/<Vendor>/<Theme>/view/adminhtml/templates
            app/code/<Vendor>/<Theme>/view/adminhtml/ui_component


            If you are creating a new theme for the Admin, you cal follow the Magento documentation for creating admin theme







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Feb 2 '17 at 7:24

























            answered Feb 2 '17 at 5:25









            rajeshrajanrajeshrajan

            112




            112













            • Which was the better way to override admin PHTML, XML and LESS/CSS. 1. Create new theme OR 2. Create new folder under $MAGENTO_BASE_DIR/app/code,

              – hweb87
              Feb 2 '17 at 6:29











            • That depends on your situation. If I am writing functionality, say for example megamenu and providing configuration options under MegaMenu in AdminHtml specifically for my extension, then I will use the new folder under app/code/Vendor/Theme option. On the other hand if I am changing the existing admin options, I will go with creating new admin theme and overriding the way we normally override.

              – rajeshrajan
              Feb 2 '17 at 7:26





















            • Which was the better way to override admin PHTML, XML and LESS/CSS. 1. Create new theme OR 2. Create new folder under $MAGENTO_BASE_DIR/app/code,

              – hweb87
              Feb 2 '17 at 6:29











            • That depends on your situation. If I am writing functionality, say for example megamenu and providing configuration options under MegaMenu in AdminHtml specifically for my extension, then I will use the new folder under app/code/Vendor/Theme option. On the other hand if I am changing the existing admin options, I will go with creating new admin theme and overriding the way we normally override.

              – rajeshrajan
              Feb 2 '17 at 7:26



















            Which was the better way to override admin PHTML, XML and LESS/CSS. 1. Create new theme OR 2. Create new folder under $MAGENTO_BASE_DIR/app/code,

            – hweb87
            Feb 2 '17 at 6:29





            Which was the better way to override admin PHTML, XML and LESS/CSS. 1. Create new theme OR 2. Create new folder under $MAGENTO_BASE_DIR/app/code,

            – hweb87
            Feb 2 '17 at 6:29













            That depends on your situation. If I am writing functionality, say for example megamenu and providing configuration options under MegaMenu in AdminHtml specifically for my extension, then I will use the new folder under app/code/Vendor/Theme option. On the other hand if I am changing the existing admin options, I will go with creating new admin theme and overriding the way we normally override.

            – rajeshrajan
            Feb 2 '17 at 7:26







            That depends on your situation. If I am writing functionality, say for example megamenu and providing configuration options under MegaMenu in AdminHtml specifically for my extension, then I will use the new folder under app/code/Vendor/Theme option. On the other hand if I am changing the existing admin options, I will go with creating new admin theme and overriding the way we normally override.

            – rajeshrajan
            Feb 2 '17 at 7:26




















            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%2f157573%2fhow-to-override-my-admin-phtml-and-css-file-in-my-theme%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

            迭戈·戈丁...

            A phrase ”follow into" in a context The 2019 Stack Overflow Developer Survey Results Are...

            1960s short story making fun of James Bond-style spy fiction The 2019 Stack Overflow Developer...