cancel
Showing results for 
Search instead for 
Did you mean: 

how I can position my custom module in the layout of my default theme?

how I can position my custom module in the layout of my default theme?

Then I created a custom module I don't able to insert it in my homepage's header.

Can you help me?

This is the file xml situated in this percors >> app/code/WaPoNe/HelloWorld/view/frontend/layout/helloworld_index_index.xml

 

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="3column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
   
    <body>
        <referenceContainer name="header.panel.wrapper">
		<container name="some.container" as="someContainer" label="Some Container" htmlTag="div" htmlClass="some-container">
			<block class="WaPoNe\HelloWorld\Block\Landingpage"
                     name="landingblock"
                     template="WaPoNe_HelloWorld::landingpage.phtml" />
					 </container>
       </referenceContainer>
   </body>
</page>
3 REPLIES

Re: how I can position my custom module in the layout of my default theme?

@giuseppe1234


You can read the load order details here: http://devdocs.magento.com/guides/v2.0/extension-dev-guide/build/module-load-order.html 

Magento Certified Solution Specialist | Lead Magento developer
If this response was helpful to you, consider giving kudos to this post

Re: how I can position my custom module in the layout of my default theme?

hi, the link, that you have tweet me, doesn't exist

Re: how I can position my custom module in the layout of my default theme?