0

How can I move a block from homepage? I only know the identifier,it's "block-homepage", but when I search for "block-homepage" in the code I can't find anything .

1 Answer 1

1

Try looking into the default.xml file under your theme's layout folder. If it's there, you can remove it with the single line below.

<referenceBlock name="block-homepage" remove="true" />

Or maybe you're looking to a page created from the admin dashboard.

Goto Content -> Pages and look for your page. Select Edit from action menu you and check the Content section. You may see the block inside of the HTML code like below.

<div>{{block name="block-homepage" template="yourtemplate.phtml"}}</div>
3
  • I have searched all the code for block-homepage and didn't found anything Commented Jan 17, 2020 at 6:37
  • 1
    I have found the block using your second suggestion, thank you! Commented Jan 17, 2020 at 7:23
  • 1
    @AndreeaOnica You're welcome. I'm glad it helped.
    – mapetek
    Commented Jan 17, 2020 at 7:39

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