I created a few ."phtml"
files in my custom theme. Currently, I create a block & widget in the backend to call them on my cms home page.
Is that the correct way?
If I, for example, want to use my custom theme on another magento2 installation, these ".phtml" files aren't included on the cms home page anymore and blocks & widgets need to be created manually.
Should I handle that stuff different? Maybe include into XML? If yes, how?
Thanks a lot for clarification :))
Best Answer
app/design/frontend/Vendor/theme/Magento_Cms/layout/cms_index_index.xml
or direclty in CMS home page content as follows