Magento 2.3 How to override the custom theme's etc/layouts.xml file in recommended way?How to override Magento directory module /etc XML fileHow to remove a config xml value?Can someone explain the app/etc/local.xml file?Magento 2: What are the “top level tags” in a Module Layout Handle XML File Called?Update block arguemnts in xml file (Recommended way not working)What's your way of debugging xml related exceptions?Magento 2 - Override an xml file defined in the etc folder in a theme?What are the cases in which $this from a custom theme's template does not recognize the theme's appropriate block?Magento 2 override Magento_Checkout updatecart.phtml and include js fileHow to override Magento directory module /etc XML fileHow can I regenerate vendor/magento/module-directory/etc/config.xml?
One word for 'the thing that attracts me'?
Why A=2 and B=1 in the call signs for Spirit and Opportunity?
How can I prevent holy aura from a human body from radiating too strongly?
The disk image is 497GB smaller than the target device
What is the use case for non-breathable waterproof pants?
Dad jokes are fun
Is superuser the same as root?
Should I split timestamp parts into separate columns?
Why is the Eisenstein ideal paper so great?
Underwater city sanitation
Creating second map without labels using QGIS?
What did the 'turbo' button actually do?
What is the recommended procedure to land a taildragger in a crosswind?
Is "vegetable base" a common term in English?
If I arrive in the UK, and then head to mainland Europe, does my Schengen visa 90 day limit start when I arrived in the UK, or mainland Europe?
Can a UK national work as a paid shop assistant in the USA?
Why did it take so long for Germany to allow electric scooters / e-rollers on the roads?
Why does Bran want to find Drogon?
Why sampling a periodic signal doesn't yield a periodic discrete signal?
Why do Russians almost not use verbs of possession akin to "have"?
Fixie: how to learn to ride: step by step
How to melt snow without fire or using body heat?
Why is this integration method not valid?
Freedom of Speech and Assembly in China
Magento 2.3 How to override the custom theme's etc/layouts.xml file in recommended way?
How to override Magento directory module /etc XML fileHow to remove a config xml value?Can someone explain the app/etc/local.xml file?Magento 2: What are the “top level tags” in a Module Layout Handle XML File Called?Update block arguemnts in xml file (Recommended way not working)What's your way of debugging xml related exceptions?Magento 2 - Override an xml file defined in the etc folder in a theme?What are the cases in which $this from a custom theme's template does not recognize the theme's appropriate block?Magento 2 override Magento_Checkout updatecart.phtml and include js fileHow to override Magento directory module /etc XML fileHow can I regenerate vendor/magento/module-directory/etc/config.xml?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
There is, in a theme that I bought a layout.xml file that is used in the backoffice to hydrat a select element (that allows you to switch between 5 layouts).
app/code/CompanyTheme/LayoutSwitcher/etc/layouts.xml
this file contains
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:CompanyTheme_LayoutSwitcher:etc/layouts.xsd">
<layout id="header_layout_1" label="Header Layout 1" type="header" />
<layout id="header_layout_2" label="Header Layout 2" type="header" />
<layout id="header_layout_3" label="Header Layout 3" type="header" />
<layout id="header_layout_4" label="Header Layout 4" type="header" />
<layout id="header_layout_5" label="Header Layout 5" type="header" />
</config>
I want to add a sixth layout. For the moment I have modified this file directly to add a line (layout 6), but I know that this is not correct because the changes I made will disappear the next time I update the code that does not belong to me.
I searched but I don't know if it is possible to override this kind of file. If so, please give me some hints or on the contrary confirm that we can't...
php layout xml magento2.3.1
add a comment |
There is, in a theme that I bought a layout.xml file that is used in the backoffice to hydrat a select element (that allows you to switch between 5 layouts).
app/code/CompanyTheme/LayoutSwitcher/etc/layouts.xml
this file contains
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:CompanyTheme_LayoutSwitcher:etc/layouts.xsd">
<layout id="header_layout_1" label="Header Layout 1" type="header" />
<layout id="header_layout_2" label="Header Layout 2" type="header" />
<layout id="header_layout_3" label="Header Layout 3" type="header" />
<layout id="header_layout_4" label="Header Layout 4" type="header" />
<layout id="header_layout_5" label="Header Layout 5" type="header" />
</config>
I want to add a sixth layout. For the moment I have modified this file directly to add a line (layout 6), but I know that this is not correct because the changes I made will disappear the next time I update the code that does not belong to me.
I searched but I don't know if it is possible to override this kind of file. If so, please give me some hints or on the contrary confirm that we can't...
php layout xml magento2.3.1
See that answer it can help you An response here
– n44s
May 16 at 14:16
add a comment |
There is, in a theme that I bought a layout.xml file that is used in the backoffice to hydrat a select element (that allows you to switch between 5 layouts).
app/code/CompanyTheme/LayoutSwitcher/etc/layouts.xml
this file contains
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:CompanyTheme_LayoutSwitcher:etc/layouts.xsd">
<layout id="header_layout_1" label="Header Layout 1" type="header" />
<layout id="header_layout_2" label="Header Layout 2" type="header" />
<layout id="header_layout_3" label="Header Layout 3" type="header" />
<layout id="header_layout_4" label="Header Layout 4" type="header" />
<layout id="header_layout_5" label="Header Layout 5" type="header" />
</config>
I want to add a sixth layout. For the moment I have modified this file directly to add a line (layout 6), but I know that this is not correct because the changes I made will disappear the next time I update the code that does not belong to me.
I searched but I don't know if it is possible to override this kind of file. If so, please give me some hints or on the contrary confirm that we can't...
php layout xml magento2.3.1
There is, in a theme that I bought a layout.xml file that is used in the backoffice to hydrat a select element (that allows you to switch between 5 layouts).
app/code/CompanyTheme/LayoutSwitcher/etc/layouts.xml
this file contains
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:CompanyTheme_LayoutSwitcher:etc/layouts.xsd">
<layout id="header_layout_1" label="Header Layout 1" type="header" />
<layout id="header_layout_2" label="Header Layout 2" type="header" />
<layout id="header_layout_3" label="Header Layout 3" type="header" />
<layout id="header_layout_4" label="Header Layout 4" type="header" />
<layout id="header_layout_5" label="Header Layout 5" type="header" />
</config>
I want to add a sixth layout. For the moment I have modified this file directly to add a line (layout 6), but I know that this is not correct because the changes I made will disappear the next time I update the code that does not belong to me.
I searched but I don't know if it is possible to override this kind of file. If so, please give me some hints or on the contrary confirm that we can't...
php layout xml magento2.3.1
php layout xml magento2.3.1
edited May 16 at 14:15
arno
asked May 16 at 13:56
arnoarno
1598
1598
See that answer it can help you An response here
– n44s
May 16 at 14:16
add a comment |
See that answer it can help you An response here
– n44s
May 16 at 14:16
See that answer it can help you An response here
– n44s
May 16 at 14:16
See that answer it can help you An response here
– n44s
May 16 at 14:16
add a comment |
2 Answers
2
active
oldest
votes
If you have created a child theme, You can override the file by copying the file to below location
app/design/frontend/YourVendor/Module/CompanyTheme_LayoutSwitcher/layout/layouts.xml
and add a sixth layout or any customization you need
add a comment |
basically, you need to create a child theme, so if any update come then no effect on your theme.
and also use git so you can track the whole summary.
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%2f274917%2fmagento-2-3-how-to-override-the-custom-themes-etc-layouts-xml-file-in-recommend%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
If you have created a child theme, You can override the file by copying the file to below location
app/design/frontend/YourVendor/Module/CompanyTheme_LayoutSwitcher/layout/layouts.xml
and add a sixth layout or any customization you need
add a comment |
If you have created a child theme, You can override the file by copying the file to below location
app/design/frontend/YourVendor/Module/CompanyTheme_LayoutSwitcher/layout/layouts.xml
and add a sixth layout or any customization you need
add a comment |
If you have created a child theme, You can override the file by copying the file to below location
app/design/frontend/YourVendor/Module/CompanyTheme_LayoutSwitcher/layout/layouts.xml
and add a sixth layout or any customization you need
If you have created a child theme, You can override the file by copying the file to below location
app/design/frontend/YourVendor/Module/CompanyTheme_LayoutSwitcher/layout/layouts.xml
and add a sixth layout or any customization you need
answered May 16 at 13:59
aravindaravind
399113
399113
add a comment |
add a comment |
basically, you need to create a child theme, so if any update come then no effect on your theme.
and also use git so you can track the whole summary.
add a comment |
basically, you need to create a child theme, so if any update come then no effect on your theme.
and also use git so you can track the whole summary.
add a comment |
basically, you need to create a child theme, so if any update come then no effect on your theme.
and also use git so you can track the whole summary.
basically, you need to create a child theme, so if any update come then no effect on your theme.
and also use git so you can track the whole summary.
answered May 16 at 13:59
Sunil PatelSunil Patel
1,5231612
1,5231612
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%2f274917%2fmagento-2-3-how-to-override-the-custom-themes-etc-layouts-xml-file-in-recommend%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
See that answer it can help you An response here
– n44s
May 16 at 14:16