Question

I added custom block in home page Magento 2, but it's showing in the top of the page

I want to move to after banners

how can I achieve this?

enter image description here cms_index_index.xml

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="../../../../../../../lib/internal/Magento/Framework/View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceContainer name="content">
            <block class="FM\Quick\Block\Custom" name="default_home_page" template="FM_Quick::cms.phtml"/>
        </referenceContainer>
    </body>
</page>
Was it helpful?

Solution

You can call your custom phtml file after the banner image using

{{block class="FM\Quick\Block\Custom" name="default_home_page" template="FM_Quick::cms.phtml"}} 
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top