{"section":"tutorials","requestedLocale":"en","requestedSlug":"associating-a-template-with-a-layout","locale":"en","slug":"associating-a-template-with-a-layout","path":"docs/en/tutorials/storefront/layout/associating-a-template-with-a-layout.md","branch":"main","content":"> Tutorial valid only for Legacy CMS Stores.\n\nYour store codes are written in the CMS **templates**. When the store gains access to Admin, for example, the `Home` template is the one that contains the code of the site's *homepage*.\n\nBut let's say you create a new `Home2` template and want to display it on the homepage. How does the platform know that it is the `Home2` template that should be shown on the homepage, not the `Home` template?\n\nTo indicate this, you need to associate the desired template with the **layout**, which is in the site folder structure within Sites and Channels.\n\nThis association is made in the layout properties setting. To get there, follow these steps:\n\n1. In the VTEX Admin, acesse **Storefront > Layout > CMS** and click on **Sites and channels**.\n2. Click on the website of the store you are editing.\n3. Click on the root folder (`/`).\n4. Search for the layout you want to edit.\n5. Click on the **Template** drop-down. There will be listed the templates configured in HTML Templates.\n6. Select the template you want to associate with this layout.\n7. Type `yes` to confirm the change (this step is necessary because this is a critical change for the site, as the page's front-end will be replaced).\n\n![CMS 4 1](https://cdn.statically.io/gh/vtexdocs/help-center-content/refs/heads/main/docs/en/tutorials/storefront/layout/associating-a-template-with-a-layout_1.png)"}