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;
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?
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?
magento2 theme theme-fallback luma-theme
add a comment |
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?
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?
magento2 theme theme-fallback luma-theme
add a comment |
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?
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?
magento2 theme theme-fallback luma-theme
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?
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?
magento2 theme theme-fallback luma-theme
magento2 theme theme-fallback luma-theme
asked Jun 6 '16 at 11:24
meezmeez
2521212
2521212
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
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
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 didphp 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 byadmin/system_config/edit/section/design
– meez
Jun 6 '16 at 15:54
|
show 5 more comments
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:
Registration.php
<?php
MagentoFrameworkComponentComponentRegistrar::register(
MagentoFrameworkComponentComponentRegistrar::THEME,
'frontend/vendor/theme',
__DIR__
);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>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.
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');
);
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%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
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
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 didphp 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 byadmin/system_config/edit/section/design
– meez
Jun 6 '16 at 15:54
|
show 5 more comments
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
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 didphp 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 byadmin/system_config/edit/section/design
– meez
Jun 6 '16 at 15:54
|
show 5 more comments
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
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
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 didphp 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 byadmin/system_config/edit/section/design
– meez
Jun 6 '16 at 15:54
|
show 5 more comments
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 didphp 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 byadmin/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
|
show 5 more comments
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:
Registration.php
<?php
MagentoFrameworkComponentComponentRegistrar::register(
MagentoFrameworkComponentComponentRegistrar::THEME,
'frontend/vendor/theme',
__DIR__
);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>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.
add a comment |
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:
Registration.php
<?php
MagentoFrameworkComponentComponentRegistrar::register(
MagentoFrameworkComponentComponentRegistrar::THEME,
'frontend/vendor/theme',
__DIR__
);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>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.
add a comment |
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:
Registration.php
<?php
MagentoFrameworkComponentComponentRegistrar::register(
MagentoFrameworkComponentComponentRegistrar::THEME,
'frontend/vendor/theme',
__DIR__
);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>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.
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:
Registration.php
<?php
MagentoFrameworkComponentComponentRegistrar::register(
MagentoFrameworkComponentComponentRegistrar::THEME,
'frontend/vendor/theme',
__DIR__
);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>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.
edited Sep 22 '18 at 10:17
answered Sep 22 '18 at 10:11
Himmat PaliwalHimmat Paliwal
1,246419
1,246419
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');
);
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%2f119532%2fmagento-2-custom-theme-based-on-parent-luma-theme-necessary-files%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');
);
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');
);
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');
);
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