1

Magento 2.1.9

I want to change the privacy policy link text, it's located at,

Privacy-cookie: magento2/vendor/magento/module-cms/view/frontend/layout/default.xml

If I edit it there, it works fine. However we all know you don't edit core files, so I copied the file to my custom theme,

magento2/app/design/frontend/custom_vendor/custom_theme/module-cms/view/frontend/layout/default.xml

However the changes aren't being loaded. Where is the correct place in my custom theme to put default.xml so that it overrides the magento default one?

Amit Bera
77.8k21 gold badges127 silver badges240 bronze badges
asked Oct 18, 2017 at 2:52

1 Answer 1

2

You have a wrong directory name. rename module-cms to Magento_Cms. Also, you don't need to place it into view/frontend. So that the correct path is:

magento2/app/design/frontend/custom_vendor/custom_theme/Magento_Cms/layout/default.xml

answered Oct 18, 2017 at 2:56
1
  • 1
    Just double checked, path is correct in my post on a fresh install of magento 2.1.9 vendor/magento/module-cms/view/frontend/layout/default.xml Commented Oct 18, 2017 at 3:15

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.