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">
        <referenceContainer name="content">
            <block class="FM\Quick\Block\Custom" name="default_home_page" template="FM_Quick::cms.phtml"/>
  • How do you managing the banners?....Are you using any extension? – Ranganathan Jun 1 '19 at 6:20
  • no bro......... – prabhakaran7 Jun 1 '19 at 6:22
  • Then how the banner is displaying? – Ranganathan Jun 1 '19 at 6:25
  • it's just image bro...... – prabhakaran7 Jun 1 '19 at 6:27

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"}} 
| improve this answer | |
  • Element with ID 'default_home_page' already exists. – prabhakaran7 Jun 1 '19 at 6:35
  • remove your code from cms_index_index.xml – Ranganathan Jun 1 '19 at 6:36

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.