Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

how to add the phtml using xml magento 2

<referenceContainer name="after.body.start">
    <block class="MagentoFrameworkViewElementTemplate" 
           name="custom.file" 
           before="-" 
           template="Magento_Theme::html/custom.phtml"
    />
</referenceContainer>
Source by magento.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #add #phtml #xml #magento
ADD COMMENT
Topic
Name
2+1 =