Move block inside another blockThe proper way to move the sections/navigation block inside Magento 2 header blockhow does magento generate the content of store link (block name=store.links )in the mobile viewgetChildHtml inside of another .phtml filehow to call phtml file of another folder inside phtml file of another folder in magento 2Magento 2 move block after anotherMagento 2 Add new field to Magento_User admin formAdding block inside a block Magento 2Magento 2 move header.links without mobile menuRemove My Account top bar when user is not logged inMagento 2 : How to move the search box next to logo title [SOLVED]

Applicants clearly not having the skills they advertise

Strange math syntax in old basic listing

Can you please explain this joke: "I'm going bananas is what I tell my bananas before I leave the house"?

What people are called "кабан" and why?

What is a natural deduction proof from ~(A↔B) to ~(A→B)?

What is the right way to float a home lab?

Singlequote and backslash

The deliberate use of misleading terminology

Recording the inputs of a command and producing a list of them later on

What caused the tendency for conservatives to not support climate change regulations?

Why don't I have ground wiring on any of my outlets?

Why does my electric oven present the option of 40A and 50A breakers?

Could a guilty Boris Johnson be used to cancel Brexit?

Rotated Position of Integers

Select row of data if next row contains zero

Why is Colorado so different politically from nearby states?

Can a helicopter mask itself from Radar?

Order by does not work as I expect

Are academic associations obliged to comply with the US government?

Can you use a concentration spell while using Mantle of Majesty?

Is it possible to kill all life on Earth?

Beginner's snake game using PyGame

Orientable with respect to complex cobordism?

Opposite of "Squeaky wheel gets the grease"



Move block inside another block


The proper way to move the sections/navigation block inside Magento 2 header blockhow does magento generate the content of store link (block name=store.links )in the mobile viewgetChildHtml inside of another .phtml filehow to call phtml file of another folder inside phtml file of another folder in magento 2Magento 2 move block after anotherMagento 2 Add new field to Magento_User admin formAdding block inside a block Magento 2Magento 2 move header.links without mobile menuRemove My Account top bar when user is not logged inMagento 2 : How to move the search box next to logo title [SOLVED]






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








3















I want to put the header.links into another block.
this is the icon.phtml file:



<div data-block="dropdown" class="minicart-wrapper">
<i class='fas fa-user-circle action' data-trigger='trigger'></i>
</div>


the menu.phtml file:



<div id="links-menu" class="block block-minicart"
data-mage-init='
"dropdownDialog":
"appendTo": "[data-block=dropdown]",
"triggerTarget":"[data-trigger=trigger]",
"timeout": 2000,
"closeOnMouseLeave": false,
"closeOnEscape": true,
"autoOpen": false,
"triggerClass": "active",
"parentClass": "active",
"dialogContentClass": "active",
"buttons": []

'>
content
</div>


This is the layout file:



<referenceContainer name="header-wrapper">
<block class="MagentoFrameworkViewElementTemplate" name="icon_account" as="icon_account" template="Magento_Customer::/icon/icon.phtml"/>
<block class="MagentoFrameworkViewElementTemplate" name="links-menu" as="links-menu" template="Magento_Customer::/menu/menu.phtml"/>
</referenceContainer>

<move element="header.links" destination="links-menu"/>


The problem is that the header.links are not into the desired destination.
How can I fix it?



Full xml:





<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<head> <!-- this is the css to render the icon of the account link -->
<css src="https://use.fontawesome.com/releases/v5.7.0/css/all.css" src_type="url"/>
</head>

<body>
<referenceBlock name="header.links">
<block class="MagentoCustomerBlockAccountCustomer" name="customer" template="account/customer.phtml" before="-"/>
<block class="MagentoCustomerBlockAccountAuthorizationLink" name="authorization-link-login" template="account/link/authorization.phtml"/>
</referenceBlock>

<block class="MagentoThemeBlockHtmlHeader" name="header" as="header">
<arguments>
<argument name="show_part" xsi:type="string">welcome</argument>
</arguments>
</block>
<move element="header" destination="header.links" before="-"/>
<move element="register-link" destination="header.links"/>
<move element="my-account-link" destination="header.links"/>
<move element="top.links" destination="customer"/>
<move element="authorization-link" destination="top.links" after="-"/>
<referenceBlock name="register-link" remove="true"/>


<referenceContainer name="header-wrapper">
<block class="MagentoFrameworkViewElementTemplate" name="icon_account" as="icon_account" template="Magento_Customer::/icon/icon.phtml"/>
<block class="MagentoFrameworkViewElementTemplate" name="links-menu" as="links-menu" template="Magento_Customer::/menu/menu.phtml"/>
</referenceContainer>

<move element="header.links" destination="links-menu"/>

<move element="icon_account" destination="header-wrapper" before="minicart"/>
<move element="top.search" destination="header-wrapper" after="logo"/>

</body>
</page>









share|improve this question
























  • write full xml.

    – Sohel Rana
    May 24 at 9:14











  • where is the closing tag for <referenceBlock name="header.links">

    – Ranganathan
    May 24 at 9:48











  • it doesn't work.

    – blob
    May 24 at 9:54

















3















I want to put the header.links into another block.
this is the icon.phtml file:



<div data-block="dropdown" class="minicart-wrapper">
<i class='fas fa-user-circle action' data-trigger='trigger'></i>
</div>


the menu.phtml file:



<div id="links-menu" class="block block-minicart"
data-mage-init='
"dropdownDialog":
"appendTo": "[data-block=dropdown]",
"triggerTarget":"[data-trigger=trigger]",
"timeout": 2000,
"closeOnMouseLeave": false,
"closeOnEscape": true,
"autoOpen": false,
"triggerClass": "active",
"parentClass": "active",
"dialogContentClass": "active",
"buttons": []

'>
content
</div>


This is the layout file:



<referenceContainer name="header-wrapper">
<block class="MagentoFrameworkViewElementTemplate" name="icon_account" as="icon_account" template="Magento_Customer::/icon/icon.phtml"/>
<block class="MagentoFrameworkViewElementTemplate" name="links-menu" as="links-menu" template="Magento_Customer::/menu/menu.phtml"/>
</referenceContainer>

<move element="header.links" destination="links-menu"/>


The problem is that the header.links are not into the desired destination.
How can I fix it?



Full xml:





<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<head> <!-- this is the css to render the icon of the account link -->
<css src="https://use.fontawesome.com/releases/v5.7.0/css/all.css" src_type="url"/>
</head>

<body>
<referenceBlock name="header.links">
<block class="MagentoCustomerBlockAccountCustomer" name="customer" template="account/customer.phtml" before="-"/>
<block class="MagentoCustomerBlockAccountAuthorizationLink" name="authorization-link-login" template="account/link/authorization.phtml"/>
</referenceBlock>

<block class="MagentoThemeBlockHtmlHeader" name="header" as="header">
<arguments>
<argument name="show_part" xsi:type="string">welcome</argument>
</arguments>
</block>
<move element="header" destination="header.links" before="-"/>
<move element="register-link" destination="header.links"/>
<move element="my-account-link" destination="header.links"/>
<move element="top.links" destination="customer"/>
<move element="authorization-link" destination="top.links" after="-"/>
<referenceBlock name="register-link" remove="true"/>


<referenceContainer name="header-wrapper">
<block class="MagentoFrameworkViewElementTemplate" name="icon_account" as="icon_account" template="Magento_Customer::/icon/icon.phtml"/>
<block class="MagentoFrameworkViewElementTemplate" name="links-menu" as="links-menu" template="Magento_Customer::/menu/menu.phtml"/>
</referenceContainer>

<move element="header.links" destination="links-menu"/>

<move element="icon_account" destination="header-wrapper" before="minicart"/>
<move element="top.search" destination="header-wrapper" after="logo"/>

</body>
</page>









share|improve this question
























  • write full xml.

    – Sohel Rana
    May 24 at 9:14











  • where is the closing tag for <referenceBlock name="header.links">

    – Ranganathan
    May 24 at 9:48











  • it doesn't work.

    – blob
    May 24 at 9:54













3












3








3


0






I want to put the header.links into another block.
this is the icon.phtml file:



<div data-block="dropdown" class="minicart-wrapper">
<i class='fas fa-user-circle action' data-trigger='trigger'></i>
</div>


the menu.phtml file:



<div id="links-menu" class="block block-minicart"
data-mage-init='
"dropdownDialog":
"appendTo": "[data-block=dropdown]",
"triggerTarget":"[data-trigger=trigger]",
"timeout": 2000,
"closeOnMouseLeave": false,
"closeOnEscape": true,
"autoOpen": false,
"triggerClass": "active",
"parentClass": "active",
"dialogContentClass": "active",
"buttons": []

'>
content
</div>


This is the layout file:



<referenceContainer name="header-wrapper">
<block class="MagentoFrameworkViewElementTemplate" name="icon_account" as="icon_account" template="Magento_Customer::/icon/icon.phtml"/>
<block class="MagentoFrameworkViewElementTemplate" name="links-menu" as="links-menu" template="Magento_Customer::/menu/menu.phtml"/>
</referenceContainer>

<move element="header.links" destination="links-menu"/>


The problem is that the header.links are not into the desired destination.
How can I fix it?



Full xml:





<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<head> <!-- this is the css to render the icon of the account link -->
<css src="https://use.fontawesome.com/releases/v5.7.0/css/all.css" src_type="url"/>
</head>

<body>
<referenceBlock name="header.links">
<block class="MagentoCustomerBlockAccountCustomer" name="customer" template="account/customer.phtml" before="-"/>
<block class="MagentoCustomerBlockAccountAuthorizationLink" name="authorization-link-login" template="account/link/authorization.phtml"/>
</referenceBlock>

<block class="MagentoThemeBlockHtmlHeader" name="header" as="header">
<arguments>
<argument name="show_part" xsi:type="string">welcome</argument>
</arguments>
</block>
<move element="header" destination="header.links" before="-"/>
<move element="register-link" destination="header.links"/>
<move element="my-account-link" destination="header.links"/>
<move element="top.links" destination="customer"/>
<move element="authorization-link" destination="top.links" after="-"/>
<referenceBlock name="register-link" remove="true"/>


<referenceContainer name="header-wrapper">
<block class="MagentoFrameworkViewElementTemplate" name="icon_account" as="icon_account" template="Magento_Customer::/icon/icon.phtml"/>
<block class="MagentoFrameworkViewElementTemplate" name="links-menu" as="links-menu" template="Magento_Customer::/menu/menu.phtml"/>
</referenceContainer>

<move element="header.links" destination="links-menu"/>

<move element="icon_account" destination="header-wrapper" before="minicart"/>
<move element="top.search" destination="header-wrapper" after="logo"/>

</body>
</page>









share|improve this question
















I want to put the header.links into another block.
this is the icon.phtml file:



<div data-block="dropdown" class="minicart-wrapper">
<i class='fas fa-user-circle action' data-trigger='trigger'></i>
</div>


the menu.phtml file:



<div id="links-menu" class="block block-minicart"
data-mage-init='
"dropdownDialog":
"appendTo": "[data-block=dropdown]",
"triggerTarget":"[data-trigger=trigger]",
"timeout": 2000,
"closeOnMouseLeave": false,
"closeOnEscape": true,
"autoOpen": false,
"triggerClass": "active",
"parentClass": "active",
"dialogContentClass": "active",
"buttons": []

'>
content
</div>


This is the layout file:



<referenceContainer name="header-wrapper">
<block class="MagentoFrameworkViewElementTemplate" name="icon_account" as="icon_account" template="Magento_Customer::/icon/icon.phtml"/>
<block class="MagentoFrameworkViewElementTemplate" name="links-menu" as="links-menu" template="Magento_Customer::/menu/menu.phtml"/>
</referenceContainer>

<move element="header.links" destination="links-menu"/>


The problem is that the header.links are not into the desired destination.
How can I fix it?



Full xml:





<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<head> <!-- this is the css to render the icon of the account link -->
<css src="https://use.fontawesome.com/releases/v5.7.0/css/all.css" src_type="url"/>
</head>

<body>
<referenceBlock name="header.links">
<block class="MagentoCustomerBlockAccountCustomer" name="customer" template="account/customer.phtml" before="-"/>
<block class="MagentoCustomerBlockAccountAuthorizationLink" name="authorization-link-login" template="account/link/authorization.phtml"/>
</referenceBlock>

<block class="MagentoThemeBlockHtmlHeader" name="header" as="header">
<arguments>
<argument name="show_part" xsi:type="string">welcome</argument>
</arguments>
</block>
<move element="header" destination="header.links" before="-"/>
<move element="register-link" destination="header.links"/>
<move element="my-account-link" destination="header.links"/>
<move element="top.links" destination="customer"/>
<move element="authorization-link" destination="top.links" after="-"/>
<referenceBlock name="register-link" remove="true"/>


<referenceContainer name="header-wrapper">
<block class="MagentoFrameworkViewElementTemplate" name="icon_account" as="icon_account" template="Magento_Customer::/icon/icon.phtml"/>
<block class="MagentoFrameworkViewElementTemplate" name="links-menu" as="links-menu" template="Magento_Customer::/menu/menu.phtml"/>
</referenceContainer>

<move element="header.links" destination="links-menu"/>

<move element="icon_account" destination="header-wrapper" before="minicart"/>
<move element="top.search" destination="header-wrapper" after="logo"/>

</body>
</page>






magento2 php theme phtml






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 24 at 10:52









Amit Bera

60.5k1682181




60.5k1682181










asked May 24 at 8:47









blobblob

1138




1138












  • write full xml.

    – Sohel Rana
    May 24 at 9:14











  • where is the closing tag for <referenceBlock name="header.links">

    – Ranganathan
    May 24 at 9:48











  • it doesn't work.

    – blob
    May 24 at 9:54

















  • write full xml.

    – Sohel Rana
    May 24 at 9:14











  • where is the closing tag for <referenceBlock name="header.links">

    – Ranganathan
    May 24 at 9:48











  • it doesn't work.

    – blob
    May 24 at 9:54
















write full xml.

– Sohel Rana
May 24 at 9:14





write full xml.

– Sohel Rana
May 24 at 9:14













where is the closing tag for <referenceBlock name="header.links">

– Ranganathan
May 24 at 9:48





where is the closing tag for <referenceBlock name="header.links">

– Ranganathan
May 24 at 9:48













it doesn't work.

– blob
May 24 at 9:54





it doesn't work.

– blob
May 24 at 9:54










1 Answer
1






active

oldest

votes


















0














I edited the layout file:



<referenceContainer name="header-wrapper">
<block class="MagentoFrameworkViewElementTemplate" name="icon_account" as="icon_account" template="Magento_Customer::/icon/icon.phtml"/>
<block class="MagentoFrameworkViewElementTemplate" name="links-menu" as="links-menu" template="Magento_Customer::/menu/menu.phtml">
<block class="MagentoFrameworkViewElementTemplate" name="links-menu-content" as="links-menu-content" template="Magento_Customer::/menu/content.phtml"/>
</block>
</referenceContainer>

<move element="header.links" destination="links-menu-content" after="-"/>


I created a content.phtml file:



<div id="minicart-content-wrapper">
<?php echo $block->getChildHtml('header.links'); ?>
</div>


The menu.phtml file:



<div id="links-menu" class="block block-minicart"
data-mage-init='
"dropdownDialog":
"appendTo": "[data-block=dropdown]",
"triggerTarget":"[data-trigger=trigger]",
"timeout": 2000,
"closeOnMouseLeave": false,
"closeOnEscape": true,
"autoOpen": false,
"triggerClass": "active",
"parentClass": "active",
"dialogContentClass": "active",
"buttons": []

'>
<?php echo $block->getChildHtml('links-menu-content'); ?>
</div>


the icon.phtml file:



<div data-block="dropdown" class="minicart-wrapper">
<i class='fas fa-user-circle action' data-trigger='trigger'></i>
</div>


So the problem was this piece of code was missing:



 <?php echo $block->getChildHtml('child block name'); ?>


It is not implicit in the layout that the parent block call its child block.






share|improve this answer























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "479"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f275966%2fmove-block-inside-another-block%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    I edited the layout file:



    <referenceContainer name="header-wrapper">
    <block class="MagentoFrameworkViewElementTemplate" name="icon_account" as="icon_account" template="Magento_Customer::/icon/icon.phtml"/>
    <block class="MagentoFrameworkViewElementTemplate" name="links-menu" as="links-menu" template="Magento_Customer::/menu/menu.phtml">
    <block class="MagentoFrameworkViewElementTemplate" name="links-menu-content" as="links-menu-content" template="Magento_Customer::/menu/content.phtml"/>
    </block>
    </referenceContainer>

    <move element="header.links" destination="links-menu-content" after="-"/>


    I created a content.phtml file:



    <div id="minicart-content-wrapper">
    <?php echo $block->getChildHtml('header.links'); ?>
    </div>


    The menu.phtml file:



    <div id="links-menu" class="block block-minicart"
    data-mage-init='
    "dropdownDialog":
    "appendTo": "[data-block=dropdown]",
    "triggerTarget":"[data-trigger=trigger]",
    "timeout": 2000,
    "closeOnMouseLeave": false,
    "closeOnEscape": true,
    "autoOpen": false,
    "triggerClass": "active",
    "parentClass": "active",
    "dialogContentClass": "active",
    "buttons": []

    '>
    <?php echo $block->getChildHtml('links-menu-content'); ?>
    </div>


    the icon.phtml file:



    <div data-block="dropdown" class="minicart-wrapper">
    <i class='fas fa-user-circle action' data-trigger='trigger'></i>
    </div>


    So the problem was this piece of code was missing:



     <?php echo $block->getChildHtml('child block name'); ?>


    It is not implicit in the layout that the parent block call its child block.






    share|improve this answer



























      0














      I edited the layout file:



      <referenceContainer name="header-wrapper">
      <block class="MagentoFrameworkViewElementTemplate" name="icon_account" as="icon_account" template="Magento_Customer::/icon/icon.phtml"/>
      <block class="MagentoFrameworkViewElementTemplate" name="links-menu" as="links-menu" template="Magento_Customer::/menu/menu.phtml">
      <block class="MagentoFrameworkViewElementTemplate" name="links-menu-content" as="links-menu-content" template="Magento_Customer::/menu/content.phtml"/>
      </block>
      </referenceContainer>

      <move element="header.links" destination="links-menu-content" after="-"/>


      I created a content.phtml file:



      <div id="minicart-content-wrapper">
      <?php echo $block->getChildHtml('header.links'); ?>
      </div>


      The menu.phtml file:



      <div id="links-menu" class="block block-minicart"
      data-mage-init='
      "dropdownDialog":
      "appendTo": "[data-block=dropdown]",
      "triggerTarget":"[data-trigger=trigger]",
      "timeout": 2000,
      "closeOnMouseLeave": false,
      "closeOnEscape": true,
      "autoOpen": false,
      "triggerClass": "active",
      "parentClass": "active",
      "dialogContentClass": "active",
      "buttons": []

      '>
      <?php echo $block->getChildHtml('links-menu-content'); ?>
      </div>


      the icon.phtml file:



      <div data-block="dropdown" class="minicart-wrapper">
      <i class='fas fa-user-circle action' data-trigger='trigger'></i>
      </div>


      So the problem was this piece of code was missing:



       <?php echo $block->getChildHtml('child block name'); ?>


      It is not implicit in the layout that the parent block call its child block.






      share|improve this answer

























        0












        0








        0







        I edited the layout file:



        <referenceContainer name="header-wrapper">
        <block class="MagentoFrameworkViewElementTemplate" name="icon_account" as="icon_account" template="Magento_Customer::/icon/icon.phtml"/>
        <block class="MagentoFrameworkViewElementTemplate" name="links-menu" as="links-menu" template="Magento_Customer::/menu/menu.phtml">
        <block class="MagentoFrameworkViewElementTemplate" name="links-menu-content" as="links-menu-content" template="Magento_Customer::/menu/content.phtml"/>
        </block>
        </referenceContainer>

        <move element="header.links" destination="links-menu-content" after="-"/>


        I created a content.phtml file:



        <div id="minicart-content-wrapper">
        <?php echo $block->getChildHtml('header.links'); ?>
        </div>


        The menu.phtml file:



        <div id="links-menu" class="block block-minicart"
        data-mage-init='
        "dropdownDialog":
        "appendTo": "[data-block=dropdown]",
        "triggerTarget":"[data-trigger=trigger]",
        "timeout": 2000,
        "closeOnMouseLeave": false,
        "closeOnEscape": true,
        "autoOpen": false,
        "triggerClass": "active",
        "parentClass": "active",
        "dialogContentClass": "active",
        "buttons": []

        '>
        <?php echo $block->getChildHtml('links-menu-content'); ?>
        </div>


        the icon.phtml file:



        <div data-block="dropdown" class="minicart-wrapper">
        <i class='fas fa-user-circle action' data-trigger='trigger'></i>
        </div>


        So the problem was this piece of code was missing:



         <?php echo $block->getChildHtml('child block name'); ?>


        It is not implicit in the layout that the parent block call its child block.






        share|improve this answer













        I edited the layout file:



        <referenceContainer name="header-wrapper">
        <block class="MagentoFrameworkViewElementTemplate" name="icon_account" as="icon_account" template="Magento_Customer::/icon/icon.phtml"/>
        <block class="MagentoFrameworkViewElementTemplate" name="links-menu" as="links-menu" template="Magento_Customer::/menu/menu.phtml">
        <block class="MagentoFrameworkViewElementTemplate" name="links-menu-content" as="links-menu-content" template="Magento_Customer::/menu/content.phtml"/>
        </block>
        </referenceContainer>

        <move element="header.links" destination="links-menu-content" after="-"/>


        I created a content.phtml file:



        <div id="minicart-content-wrapper">
        <?php echo $block->getChildHtml('header.links'); ?>
        </div>


        The menu.phtml file:



        <div id="links-menu" class="block block-minicart"
        data-mage-init='
        "dropdownDialog":
        "appendTo": "[data-block=dropdown]",
        "triggerTarget":"[data-trigger=trigger]",
        "timeout": 2000,
        "closeOnMouseLeave": false,
        "closeOnEscape": true,
        "autoOpen": false,
        "triggerClass": "active",
        "parentClass": "active",
        "dialogContentClass": "active",
        "buttons": []

        '>
        <?php echo $block->getChildHtml('links-menu-content'); ?>
        </div>


        the icon.phtml file:



        <div data-block="dropdown" class="minicart-wrapper">
        <i class='fas fa-user-circle action' data-trigger='trigger'></i>
        </div>


        So the problem was this piece of code was missing:



         <?php echo $block->getChildHtml('child block name'); ?>


        It is not implicit in the layout that the parent block call its child block.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered May 24 at 12:37









        blobblob

        1138




        1138



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Magento Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f275966%2fmove-block-inside-another-block%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

            Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

            Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form