cancel
Showing results for 
Search instead for 
Did you mean: 

how to update layout xml for custom theme in Magento 2

how to update layout xml for custom theme in Magento 2

Hello,

 

I am creating a custom theme for Magento 2. I need to customize the layout existing in app/design/frontend/[Vendor]/[CustomTheme]/Magento_Theme/layout] whose name is default.xml.

I have changed it by adding and changing some things, however, changes are not taken into account. I always see the original layout.

I have disabled cache, however, just in case, I have flushed it but it was unsuccessful.

How can I reload the layout? maybe it was stored in database, but, how can I refresh it?

 

Thanks

Jaime

1 REPLY

Re: how to update layout xml for custom theme in Magento 2

What exactly are you trying to change in the layout?

For example, see how to change a standard block's template: https://mage2.pro/t/66