i want to make a module which will add a custom meta tag which will be dynamic as per page .it will appear in all page.
i want this to be appear after meta name "viewreport".
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityI am not sure about add meta after meta name "viewreport", But you can add dynamic like adding below code into default.xml
<referenceContainer name="after.body.start">
<block class="Magento\Framework\View\Element\Template" name="test" template="test.phtml" after="-"/>
</referenceContainer>
OR
<referenceContainer name="before.body.end">
<block class="Magento\Framework\View\Element\Template" name="test" template="test.phtml" after="-"/>
</referenceContainer>
OR
<referenceBlock name="head.additional">
<block class="Magento\Framework\View\Element\Template" name="test" template="test.phtml" after="-"/>
</referenceBlock>
Thanks