I wish to do some customization in luma theme (default.xml).
I just created the default.xml file as specified below but it is not taking any effect.
Note sure is this the correct way to override the theme???
You must create and register a new theme:
You just need to create 2 files theme.xml
and registration.php
these are the examples for the theme in the image (Dayds). You should change that name for your own.
app/design/frontend/Dayds/default/registration.php
<?php
\Magento\Framework\Component\ComponentRegistrar::register(
\Magento\Framework\Component\ComponentRegistrar::THEME,
'frontend/Dayds/default',
__DIR__
);
app/design/frontend/Dayds/default/theme.xml
<theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/theme.xsd">
<title>DAYDS . Default</title>
<parent>Magento/luma</parent>
</theme>
Then go to the backend and activate your new theme for the desired store.
default.xml
(for Ex: I set report.bugs
to remove false
just to check) and it is not reflecting in the front-end. But if I edit the luma default.xml directly it works.
Commented
Jan 30, 2016 at 19:36
theme
table. Note that, for some reason - you must respect the case that way: ThemeVendor > theme_name
Commented
Jan 30, 2016 at 20:15