Magento 2: How to override template of list page for particular category using category id.

Magento 2: How to override template of list page for particular category using category id

Step 1: You need to create a xml file catalog_category_view_id_{{id}}.xml under your theme > Magento_Catalog > layout.

Step 2: Replace list.phtml from your phtml file.

 

for example : Let’s suppose “XYZ” is your category and “27” is your category id, then the name of xml file should be-

catalog_category_view_id_27.xml .