Magento 2 custom theme based on parent Luma theme necessary filesCustomize Magento 2 Blank themeCustomize Magento 2 Blank themeMagento 2 theme fallback to blank regardless of parentHow to “override” default Magento2 “Luma” Theme with a Custom ThemeMagento 2 LUMA based custom theme - Needed extra Div under MenuMagento 2: How to override Luma Theme Home PageMagento 2 Change the content of the luma theme's topmost divMagento 2.x some css and js not working in custom themeWhere are the Magento Luma theme files located?Magento footer links not removed in custom themeChanges in Parent Luma theme is not reflected in Child Luma theme in Magento 2.3.0?

Is it normal for gliders not to have attitude indicators?

Execute command on shell command output

Switch Function Not working Properly

Dirichlet series with a single zero

Is there precedent or are there procedures for a US president refusing to concede to an electoral defeat?

Drawing an hexagonal cone in TikZ 2D

Gerrymandering Puzzle - Rig the Election

Why is "breaking the mould" positively connoted?

Why does sound not move through a wall?

Which US defense organization would respond to an invasion like this?

Make me a minimum magic sum

How to pass query parameters in URL in Salesforce Summer 19 Release?

How to display number in triangular pattern with plus sign

Why does blending blueberries, milk, banana and vanilla extract cause the mixture to have a yogurty consistency?

How to Practice After Stream Entry as Opposed to Before?

How to preserve a rare version of a book?

What are the requirements for a river delta to form?

How can I decipher which graph belongs to which equation?

What's the 2-minute timer on mobile Deutsche Bahn tickets?

Disabling quote conversion in docstrings

How did the Apollo guidance computer handle parity bit errors?

All superlinear runtime algorithms are asymptotically equivalent to convex function?

It isn’t that you must stop now

Clarification of algebra in moment generating functions



Magento 2 custom theme based on parent Luma theme necessary files


Customize Magento 2 Blank themeCustomize Magento 2 Blank themeMagento 2 theme fallback to blank regardless of parentHow to “override” default Magento2 “Luma” Theme with a Custom ThemeMagento 2 LUMA based custom theme - Needed extra Div under MenuMagento 2: How to override Luma Theme Home PageMagento 2 Change the content of the luma theme's topmost divMagento 2.x some css and js not working in custom themeWhere are the Magento Luma theme files located?Magento footer links not removed in custom themeChanges in Parent Luma theme is not reflected in Child Luma theme in Magento 2.3.0?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








2















I created my custom theme based on Magento Luma theme:



  • In /app/design/frontend/MyVendorName/ncs-theme/theme.xml I added <parent>Magento/luma</parent>

But when I look at my frontend I see some differences. For example on the product-view page (see attachment), the structure of <div class="product-info-price"> is different then the Luma theme?
enter image description here



And on the homepage it's also missing styles for the <div class="content-heading"> (see image). Do I have to copy some files into my custom theme?



enter image description here










share|improve this question




























    2















    I created my custom theme based on Magento Luma theme:



    • In /app/design/frontend/MyVendorName/ncs-theme/theme.xml I added <parent>Magento/luma</parent>

    But when I look at my frontend I see some differences. For example on the product-view page (see attachment), the structure of <div class="product-info-price"> is different then the Luma theme?
    enter image description here



    And on the homepage it's also missing styles for the <div class="content-heading"> (see image). Do I have to copy some files into my custom theme?



    enter image description here










    share|improve this question
























      2












      2








      2








      I created my custom theme based on Magento Luma theme:



      • In /app/design/frontend/MyVendorName/ncs-theme/theme.xml I added <parent>Magento/luma</parent>

      But when I look at my frontend I see some differences. For example on the product-view page (see attachment), the structure of <div class="product-info-price"> is different then the Luma theme?
      enter image description here



      And on the homepage it's also missing styles for the <div class="content-heading"> (see image). Do I have to copy some files into my custom theme?



      enter image description here










      share|improve this question














      I created my custom theme based on Magento Luma theme:



      • In /app/design/frontend/MyVendorName/ncs-theme/theme.xml I added <parent>Magento/luma</parent>

      But when I look at my frontend I see some differences. For example on the product-view page (see attachment), the structure of <div class="product-info-price"> is different then the Luma theme?
      enter image description here



      And on the homepage it's also missing styles for the <div class="content-heading"> (see image). Do I have to copy some files into my custom theme?



      enter image description here







      magento2 theme theme-fallback luma-theme






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jun 6 '16 at 11:24









      meezmeez

      2521212




      2521212




















          2 Answers
          2






          active

          oldest

          votes


















          0














          Use the commmand line tool to regenerate the static files and the cache.



          I would also try running your server as an administrator so that it doesn't have any issues with symlinks.



          http://devdocs.magento.com/guides/v2.0/install-gde/install/cli/install-cli.html






          share|improve this answer


















          • 1





            1) I am using MAMP for local development. How do run my server as an administrator? 2) My mode is 'development', before I already did php bin/magento setup:static-content:deploy and cleared cash?

            – meez
            Jun 6 '16 at 11:34











          • Setup:static-content:deploy is useless and takes too long.

            – LM_Fielding
            Jun 6 '16 at 12:31






          • 1





            Ok I will install Grunt. Thanks. But regarding my first image. What is missing here? If I look in /vendor/magento/theme-frontend-luma/Magento_Catalog/layout/catalog_product_view.xml. I see Luma theme is changing the HTML structure here. But why it's not visible on my frontend, while Luma is my parent theme and my custom theme should inherit everything from Luma theme isn't it?

            – meez
            Jun 6 '16 at 12:48






          • 1





            But do I have to replace it to my custom theme folder? I am not going to change that file... If I am not going to change it, why should I copy it over?

            – meez
            Jun 6 '16 at 12:56






          • 1





            What do you mean with 'Is the theme applied through admin', like I did explained below? I setup my custom theme like explained here and then I by admin/system_config/edit/section/design

            – meez
            Jun 6 '16 at 15:54


















          0














          Have you added the registration.php file too? That is also the required file to be added in new custom theme. If you are facing product view related issues then you can also put the file etc/view.xml from luma to your custom theme. Custom theme requires two files be added always:




          1. Registration.php



            <?php
            MagentoFrameworkComponentComponentRegistrar::register(
            MagentoFrameworkComponentComponentRegistrar::THEME,
            'frontend/vendor/theme',
            __DIR__
            );




          2. Theme.xml



            <theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/theme.xsd">
            <title>Your Theme</title>
            <parent>Magento/luma</parent>
            <media>
            <preview_image>media/preview.jpg</preview_image>
            </media>
            </theme>



          3. etc/view.xml (optional) : if you set blank theme as parent then you need to add this, however, I would suggest to add this file too in case you are facing issues to display product data with luma as parent. You can simply copy it from luma to your custom theme.






          share|improve this answer

























            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%2f119532%2fmagento-2-custom-theme-based-on-parent-luma-theme-necessary-files%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














            Use the commmand line tool to regenerate the static files and the cache.



            I would also try running your server as an administrator so that it doesn't have any issues with symlinks.



            http://devdocs.magento.com/guides/v2.0/install-gde/install/cli/install-cli.html






            share|improve this answer


















            • 1





              1) I am using MAMP for local development. How do run my server as an administrator? 2) My mode is 'development', before I already did php bin/magento setup:static-content:deploy and cleared cash?

              – meez
              Jun 6 '16 at 11:34











            • Setup:static-content:deploy is useless and takes too long.

              – LM_Fielding
              Jun 6 '16 at 12:31






            • 1





              Ok I will install Grunt. Thanks. But regarding my first image. What is missing here? If I look in /vendor/magento/theme-frontend-luma/Magento_Catalog/layout/catalog_product_view.xml. I see Luma theme is changing the HTML structure here. But why it's not visible on my frontend, while Luma is my parent theme and my custom theme should inherit everything from Luma theme isn't it?

              – meez
              Jun 6 '16 at 12:48






            • 1





              But do I have to replace it to my custom theme folder? I am not going to change that file... If I am not going to change it, why should I copy it over?

              – meez
              Jun 6 '16 at 12:56






            • 1





              What do you mean with 'Is the theme applied through admin', like I did explained below? I setup my custom theme like explained here and then I by admin/system_config/edit/section/design

              – meez
              Jun 6 '16 at 15:54















            0














            Use the commmand line tool to regenerate the static files and the cache.



            I would also try running your server as an administrator so that it doesn't have any issues with symlinks.



            http://devdocs.magento.com/guides/v2.0/install-gde/install/cli/install-cli.html






            share|improve this answer


















            • 1





              1) I am using MAMP for local development. How do run my server as an administrator? 2) My mode is 'development', before I already did php bin/magento setup:static-content:deploy and cleared cash?

              – meez
              Jun 6 '16 at 11:34











            • Setup:static-content:deploy is useless and takes too long.

              – LM_Fielding
              Jun 6 '16 at 12:31






            • 1





              Ok I will install Grunt. Thanks. But regarding my first image. What is missing here? If I look in /vendor/magento/theme-frontend-luma/Magento_Catalog/layout/catalog_product_view.xml. I see Luma theme is changing the HTML structure here. But why it's not visible on my frontend, while Luma is my parent theme and my custom theme should inherit everything from Luma theme isn't it?

              – meez
              Jun 6 '16 at 12:48






            • 1





              But do I have to replace it to my custom theme folder? I am not going to change that file... If I am not going to change it, why should I copy it over?

              – meez
              Jun 6 '16 at 12:56






            • 1





              What do you mean with 'Is the theme applied through admin', like I did explained below? I setup my custom theme like explained here and then I by admin/system_config/edit/section/design

              – meez
              Jun 6 '16 at 15:54













            0












            0








            0







            Use the commmand line tool to regenerate the static files and the cache.



            I would also try running your server as an administrator so that it doesn't have any issues with symlinks.



            http://devdocs.magento.com/guides/v2.0/install-gde/install/cli/install-cli.html






            share|improve this answer













            Use the commmand line tool to regenerate the static files and the cache.



            I would also try running your server as an administrator so that it doesn't have any issues with symlinks.



            http://devdocs.magento.com/guides/v2.0/install-gde/install/cli/install-cli.html







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Jun 6 '16 at 11:29









            LM_FieldingLM_Fielding

            7381537




            7381537







            • 1





              1) I am using MAMP for local development. How do run my server as an administrator? 2) My mode is 'development', before I already did php bin/magento setup:static-content:deploy and cleared cash?

              – meez
              Jun 6 '16 at 11:34











            • Setup:static-content:deploy is useless and takes too long.

              – LM_Fielding
              Jun 6 '16 at 12:31






            • 1





              Ok I will install Grunt. Thanks. But regarding my first image. What is missing here? If I look in /vendor/magento/theme-frontend-luma/Magento_Catalog/layout/catalog_product_view.xml. I see Luma theme is changing the HTML structure here. But why it's not visible on my frontend, while Luma is my parent theme and my custom theme should inherit everything from Luma theme isn't it?

              – meez
              Jun 6 '16 at 12:48






            • 1





              But do I have to replace it to my custom theme folder? I am not going to change that file... If I am not going to change it, why should I copy it over?

              – meez
              Jun 6 '16 at 12:56






            • 1





              What do you mean with 'Is the theme applied through admin', like I did explained below? I setup my custom theme like explained here and then I by admin/system_config/edit/section/design

              – meez
              Jun 6 '16 at 15:54












            • 1





              1) I am using MAMP for local development. How do run my server as an administrator? 2) My mode is 'development', before I already did php bin/magento setup:static-content:deploy and cleared cash?

              – meez
              Jun 6 '16 at 11:34











            • Setup:static-content:deploy is useless and takes too long.

              – LM_Fielding
              Jun 6 '16 at 12:31






            • 1





              Ok I will install Grunt. Thanks. But regarding my first image. What is missing here? If I look in /vendor/magento/theme-frontend-luma/Magento_Catalog/layout/catalog_product_view.xml. I see Luma theme is changing the HTML structure here. But why it's not visible on my frontend, while Luma is my parent theme and my custom theme should inherit everything from Luma theme isn't it?

              – meez
              Jun 6 '16 at 12:48






            • 1





              But do I have to replace it to my custom theme folder? I am not going to change that file... If I am not going to change it, why should I copy it over?

              – meez
              Jun 6 '16 at 12:56






            • 1





              What do you mean with 'Is the theme applied through admin', like I did explained below? I setup my custom theme like explained here and then I by admin/system_config/edit/section/design

              – meez
              Jun 6 '16 at 15:54







            1




            1





            1) I am using MAMP for local development. How do run my server as an administrator? 2) My mode is 'development', before I already did php bin/magento setup:static-content:deploy and cleared cash?

            – meez
            Jun 6 '16 at 11:34





            1) I am using MAMP for local development. How do run my server as an administrator? 2) My mode is 'development', before I already did php bin/magento setup:static-content:deploy and cleared cash?

            – meez
            Jun 6 '16 at 11:34













            Setup:static-content:deploy is useless and takes too long.

            – LM_Fielding
            Jun 6 '16 at 12:31





            Setup:static-content:deploy is useless and takes too long.

            – LM_Fielding
            Jun 6 '16 at 12:31




            1




            1





            Ok I will install Grunt. Thanks. But regarding my first image. What is missing here? If I look in /vendor/magento/theme-frontend-luma/Magento_Catalog/layout/catalog_product_view.xml. I see Luma theme is changing the HTML structure here. But why it's not visible on my frontend, while Luma is my parent theme and my custom theme should inherit everything from Luma theme isn't it?

            – meez
            Jun 6 '16 at 12:48





            Ok I will install Grunt. Thanks. But regarding my first image. What is missing here? If I look in /vendor/magento/theme-frontend-luma/Magento_Catalog/layout/catalog_product_view.xml. I see Luma theme is changing the HTML structure here. But why it's not visible on my frontend, while Luma is my parent theme and my custom theme should inherit everything from Luma theme isn't it?

            – meez
            Jun 6 '16 at 12:48




            1




            1





            But do I have to replace it to my custom theme folder? I am not going to change that file... If I am not going to change it, why should I copy it over?

            – meez
            Jun 6 '16 at 12:56





            But do I have to replace it to my custom theme folder? I am not going to change that file... If I am not going to change it, why should I copy it over?

            – meez
            Jun 6 '16 at 12:56




            1




            1





            What do you mean with 'Is the theme applied through admin', like I did explained below? I setup my custom theme like explained here and then I by admin/system_config/edit/section/design

            – meez
            Jun 6 '16 at 15:54





            What do you mean with 'Is the theme applied through admin', like I did explained below? I setup my custom theme like explained here and then I by admin/system_config/edit/section/design

            – meez
            Jun 6 '16 at 15:54













            0














            Have you added the registration.php file too? That is also the required file to be added in new custom theme. If you are facing product view related issues then you can also put the file etc/view.xml from luma to your custom theme. Custom theme requires two files be added always:




            1. Registration.php



              <?php
              MagentoFrameworkComponentComponentRegistrar::register(
              MagentoFrameworkComponentComponentRegistrar::THEME,
              'frontend/vendor/theme',
              __DIR__
              );




            2. Theme.xml



              <theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/theme.xsd">
              <title>Your Theme</title>
              <parent>Magento/luma</parent>
              <media>
              <preview_image>media/preview.jpg</preview_image>
              </media>
              </theme>



            3. etc/view.xml (optional) : if you set blank theme as parent then you need to add this, however, I would suggest to add this file too in case you are facing issues to display product data with luma as parent. You can simply copy it from luma to your custom theme.






            share|improve this answer





























              0














              Have you added the registration.php file too? That is also the required file to be added in new custom theme. If you are facing product view related issues then you can also put the file etc/view.xml from luma to your custom theme. Custom theme requires two files be added always:




              1. Registration.php



                <?php
                MagentoFrameworkComponentComponentRegistrar::register(
                MagentoFrameworkComponentComponentRegistrar::THEME,
                'frontend/vendor/theme',
                __DIR__
                );




              2. Theme.xml



                <theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/theme.xsd">
                <title>Your Theme</title>
                <parent>Magento/luma</parent>
                <media>
                <preview_image>media/preview.jpg</preview_image>
                </media>
                </theme>



              3. etc/view.xml (optional) : if you set blank theme as parent then you need to add this, however, I would suggest to add this file too in case you are facing issues to display product data with luma as parent. You can simply copy it from luma to your custom theme.






              share|improve this answer



























                0












                0








                0







                Have you added the registration.php file too? That is also the required file to be added in new custom theme. If you are facing product view related issues then you can also put the file etc/view.xml from luma to your custom theme. Custom theme requires two files be added always:




                1. Registration.php



                  <?php
                  MagentoFrameworkComponentComponentRegistrar::register(
                  MagentoFrameworkComponentComponentRegistrar::THEME,
                  'frontend/vendor/theme',
                  __DIR__
                  );




                2. Theme.xml



                  <theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/theme.xsd">
                  <title>Your Theme</title>
                  <parent>Magento/luma</parent>
                  <media>
                  <preview_image>media/preview.jpg</preview_image>
                  </media>
                  </theme>



                3. etc/view.xml (optional) : if you set blank theme as parent then you need to add this, however, I would suggest to add this file too in case you are facing issues to display product data with luma as parent. You can simply copy it from luma to your custom theme.






                share|improve this answer















                Have you added the registration.php file too? That is also the required file to be added in new custom theme. If you are facing product view related issues then you can also put the file etc/view.xml from luma to your custom theme. Custom theme requires two files be added always:




                1. Registration.php



                  <?php
                  MagentoFrameworkComponentComponentRegistrar::register(
                  MagentoFrameworkComponentComponentRegistrar::THEME,
                  'frontend/vendor/theme',
                  __DIR__
                  );




                2. Theme.xml



                  <theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/theme.xsd">
                  <title>Your Theme</title>
                  <parent>Magento/luma</parent>
                  <media>
                  <preview_image>media/preview.jpg</preview_image>
                  </media>
                  </theme>



                3. etc/view.xml (optional) : if you set blank theme as parent then you need to add this, however, I would suggest to add this file too in case you are facing issues to display product data with luma as parent. You can simply copy it from luma to your custom theme.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Sep 22 '18 at 10:17

























                answered Sep 22 '18 at 10:11









                Himmat PaliwalHimmat Paliwal

                1,246419




                1,246419



























                    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%2f119532%2fmagento-2-custom-theme-based-on-parent-luma-theme-necessary-files%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

                    Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

                    Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

                    Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?