Saturday 4 June 2016

How to create seprate xml for home page

In your theme folder, create a folder name "Magento_Cms" and inside that again a new folder name "layout".

In the layout folder create an xml file with name "cms_index_index.xml". Place your code here in this file.

This will be called for home page only. It will not called in other page.

No comments:

Post a Comment