Change Category Layout for Specific Category

In this post we will see together how you can easily change the layout for a specific category. Let's see how you can do that!

The solution is based on Magento 2.3.4 where the way to do that has changed as there is no Layout Update XML field in the category admin area. Firstly you will need the category id of the category you want to update the layout. This can be found in Magento admin under Catalog -> Categories.

After that create in your custom theme under app/design/frontend/VENDOR/THEME/MODULE/layout/ an xml layout file with the following name pattern


where 3 is the category id and MageVision the name of the custom layout.

Now if you navigate in Magento admin under Catalog -> Categories and select the category with id 3, you will see in the tab Design that for the field Custom Layout Update there is an new option called MageVision. You can select it, save the category and the custom layout update will be applied for that category!

Feel free to share this post and ask your questions in the comments below.

Till next time!

DigitalOcean Referral Badge