I have create a custom xml for Category Page and I need to move the Category Title inside my Block. This is my custom.xml code:
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceContainer name="page.top" >
<block class="Magento\Cms\Block\Block" name="my.block" before="breadcrumbs">
<arguments>
<argument name="block_id" xsi:type="string">category-static-block</argument>
</arguments>
</block>
</referenceContainer>
</body>
</page>
I try to use this but is not work
<move element="page.main.title" destination="my.block" before="-"/>
UPDATE:
Also I have insert this in my custom static block:
{{block class="Magento\Framework\View\Element\Template" template="Magento_Catalog::mtitle.phtml"}}
in my mtitle.phtml I have add this code:
echo $block->getChildHtml('page.main.title');
and in the xml I have add this:
<move element="page.main.title" destination="my.block" before="-"/>
But without success ....