I'm having a lot of problems adding an html tag in head section only on homepage layout (that's defined in my custom theme as page layout). I'm using M2 v. 2.2
In default.xml is defined
<referenceBlock name="head.additional">
<block class="Magento\Framework\View\Element\Template" name="head.additional.fonts" template="Infortis_Base::html/header/fonts.phtml" after="head.additional.asset-wrapper" />
</referenceBlock>
and I added a block to edit and insert an html tag:
<referenceBlock name="head.additional">
<block class="Magento\Framework\View\Element\Template" name="head.additional.fonts" template="Infortis_Base::html/header/fonts.phtml" after="head.additional.asset-wrapper" />
<block class="Magento\Framework\View\Element\Template" name="head.additional.metas" template="Infortis_Base::html/header/metas.phtml" before="head.additional.asset-wrapper" />
</referenceBlock>
so that I would be able to change the phtml template inside the home xml page layout but if I reference the block it doesn't change.
Any help? I'm on this from 2 days and it driving me crazy. THANKS