I wish to add a custom home page layout in Magento 2.


In Magento 1, it's very simple, i create my module :

<?xml version="1.0"?>

and i create a config.xml

<?xml version="1.0"?>
                    <label>Custom Home Page</label>

It's possible to do something similar in Magento 2?


Create layouts.xml following location:


Content should be

<?xml version="1.0" encoding="UTF-8"?>
<page_layouts xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/PageLayout/etc/layouts.xsd">
    <layout id="homepage">
        <label translate="true">Custom Homepage</label>

Create your new custom page layout (ex: homepage.xml) following location:


Content should be well structure page layout. So in your case copy of existing page layout into your custom page layout. All page layouts locate:

| improve this answer | |

Use 1st answer for page layout updates, but change locations:

For layouts.xml move it to


For homepage.xml move it to


I've tried 1st answer example but it didn't work.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.