Magento 2: move the top links in the same container as the logo












3















I am working on a Magento 2.1.7 shop. To achieve this, I have created a child-theme of Magento Blank.



My top links (above the logo) are:




  1. Compare Products

  2. Default welcome msg!

  3. My Account

  4. My Wish List

  5. Create an Account

  6. Sign In


I need to remove all the links except:




  1. My Account

  2. My Wish List

  3. Sign In


I want to move the 3 links above on the same block - <div class="header content"></div> - as the logo.



The logo will be floated to the left, while the 3 links will be floated to the right.



What files must I edit to achieve this?










share|improve this question

























  • Why don't you research that for your self?. remove block, xml block magento 2

    – HoangHieu
    Dec 18 '17 at 16:21
















3















I am working on a Magento 2.1.7 shop. To achieve this, I have created a child-theme of Magento Blank.



My top links (above the logo) are:




  1. Compare Products

  2. Default welcome msg!

  3. My Account

  4. My Wish List

  5. Create an Account

  6. Sign In


I need to remove all the links except:




  1. My Account

  2. My Wish List

  3. Sign In


I want to move the 3 links above on the same block - <div class="header content"></div> - as the logo.



The logo will be floated to the left, while the 3 links will be floated to the right.



What files must I edit to achieve this?










share|improve this question

























  • Why don't you research that for your self?. remove block, xml block magento 2

    – HoangHieu
    Dec 18 '17 at 16:21














3












3








3


1






I am working on a Magento 2.1.7 shop. To achieve this, I have created a child-theme of Magento Blank.



My top links (above the logo) are:




  1. Compare Products

  2. Default welcome msg!

  3. My Account

  4. My Wish List

  5. Create an Account

  6. Sign In


I need to remove all the links except:




  1. My Account

  2. My Wish List

  3. Sign In


I want to move the 3 links above on the same block - <div class="header content"></div> - as the logo.



The logo will be floated to the left, while the 3 links will be floated to the right.



What files must I edit to achieve this?










share|improve this question
















I am working on a Magento 2.1.7 shop. To achieve this, I have created a child-theme of Magento Blank.



My top links (above the logo) are:




  1. Compare Products

  2. Default welcome msg!

  3. My Account

  4. My Wish List

  5. Create an Account

  6. Sign In


I need to remove all the links except:




  1. My Account

  2. My Wish List

  3. Sign In


I want to move the 3 links above on the same block - <div class="header content"></div> - as the logo.



The logo will be floated to the left, while the 3 links will be floated to the right.



What files must I edit to achieve this?







magento2 magento-2.1 toplinks






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 15 '17 at 14:34







Razvan Zamfir

















asked Dec 15 '17 at 11:48









Razvan ZamfirRazvan Zamfir

131230




131230













  • Why don't you research that for your self?. remove block, xml block magento 2

    – HoangHieu
    Dec 18 '17 at 16:21



















  • Why don't you research that for your self?. remove block, xml block magento 2

    – HoangHieu
    Dec 18 '17 at 16:21

















Why don't you research that for your self?. remove block, xml block magento 2

– HoangHieu
Dec 18 '17 at 16:21





Why don't you research that for your self?. remove block, xml block magento 2

– HoangHieu
Dec 18 '17 at 16:21










2 Answers
2






active

oldest

votes


















5





+50










  1. Remove Compare Products link:



Theme_Root/Magento_Catalog/layout/default.xml




<referenceBlock name="catalog.compare.link" remove="true" />



  1. Remove Default welcome message:



Theme_Root/Magento_Theme/layout/default.xml




<referenceBlock name="header" remove="true" />



  1. Remove Create an Account link:



Theme_Root/Magento_Customer/layout/default.xml




<referenceBlock name="register-link" remove="true" />



  1. Move Top Links to the right container:



Theme_Root/Magento_Theme/layout/default.xml




<move element="top.links" destination="header-wrapper" after="logo" />


After these manipulations you need align blocks logo and links via CSS, with float.




  1. Create block with My Wish List:



Theme_Root/Magento_Theme/layout/default.xml




<referenceContainer name="header.panel">
<block name="panel.top.links" class="MagentoFrameworkViewElementHtmlLinks" after="-">
<arguments>
<argument name="css_class" xsi:type="string">header links</argument>
</arguments>
</block>
</referenceContainer>



Theme_Root/Magento_Wishlist/layout/default.xml




<move element="wish-list-link" destination="panel.top.links" />


Write me if you need any help.






share|improve this answer


























  • Great, but I want to keep My Wish List at the top, in its initial place. How can I do that?

    – Razvan Zamfir
    Dec 18 '17 at 16:02











  • I updated my answer. Check it, please

    – Evgeny Levinsky
    Dec 18 '17 at 16:16











  • I want to turn <ul class="clearfix header links"> <li><a href="/customer/account/">My Account</a></li> <li class="authorization-link" data-label="or"><a href="/account/login/">Sign In</a> </li> </ul> into <ul class="clearfix header links"> <li><a href="/customer/account/"><i class="fa fa-user-o" aria-hidden="true"></i> My Account</a></li> <li class="authorization-link" data-label="or"><a href="/account/login/"><i class="fa fa-sign-in" aria-hidden="true"></i> Sign In</a> </li> </ul> In other words, how do I add icons?

    – Razvan Zamfir
    Dec 19 '17 at 10:03













  • In first link you can add css class on block via <argument name="class" xsi:type="string"> ... </argument> in Theme_Root/Magento_Customer/layout/default.xml. In second link you need override vendor/magento/module-customer/view/frontend/templates/account/link/authorization.phtml in your theme and adjust it.

    – Evgeny Levinsky
    Dec 19 '17 at 17:12



















0














I want to remove My Account My Wish List Sign In Default welcome msg! Create an Account form header






share|improve this answer








New contributor




Vishal Sondagar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















    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%2f205987%2fmagento-2-move-the-top-links-in-the-same-container-as-the-logo%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    5





    +50










    1. Remove Compare Products link:



    Theme_Root/Magento_Catalog/layout/default.xml




    <referenceBlock name="catalog.compare.link" remove="true" />



    1. Remove Default welcome message:



    Theme_Root/Magento_Theme/layout/default.xml




    <referenceBlock name="header" remove="true" />



    1. Remove Create an Account link:



    Theme_Root/Magento_Customer/layout/default.xml




    <referenceBlock name="register-link" remove="true" />



    1. Move Top Links to the right container:



    Theme_Root/Magento_Theme/layout/default.xml




    <move element="top.links" destination="header-wrapper" after="logo" />


    After these manipulations you need align blocks logo and links via CSS, with float.




    1. Create block with My Wish List:



    Theme_Root/Magento_Theme/layout/default.xml




    <referenceContainer name="header.panel">
    <block name="panel.top.links" class="MagentoFrameworkViewElementHtmlLinks" after="-">
    <arguments>
    <argument name="css_class" xsi:type="string">header links</argument>
    </arguments>
    </block>
    </referenceContainer>



    Theme_Root/Magento_Wishlist/layout/default.xml




    <move element="wish-list-link" destination="panel.top.links" />


    Write me if you need any help.






    share|improve this answer


























    • Great, but I want to keep My Wish List at the top, in its initial place. How can I do that?

      – Razvan Zamfir
      Dec 18 '17 at 16:02











    • I updated my answer. Check it, please

      – Evgeny Levinsky
      Dec 18 '17 at 16:16











    • I want to turn <ul class="clearfix header links"> <li><a href="/customer/account/">My Account</a></li> <li class="authorization-link" data-label="or"><a href="/account/login/">Sign In</a> </li> </ul> into <ul class="clearfix header links"> <li><a href="/customer/account/"><i class="fa fa-user-o" aria-hidden="true"></i> My Account</a></li> <li class="authorization-link" data-label="or"><a href="/account/login/"><i class="fa fa-sign-in" aria-hidden="true"></i> Sign In</a> </li> </ul> In other words, how do I add icons?

      – Razvan Zamfir
      Dec 19 '17 at 10:03













    • In first link you can add css class on block via <argument name="class" xsi:type="string"> ... </argument> in Theme_Root/Magento_Customer/layout/default.xml. In second link you need override vendor/magento/module-customer/view/frontend/templates/account/link/authorization.phtml in your theme and adjust it.

      – Evgeny Levinsky
      Dec 19 '17 at 17:12
















    5





    +50










    1. Remove Compare Products link:



    Theme_Root/Magento_Catalog/layout/default.xml




    <referenceBlock name="catalog.compare.link" remove="true" />



    1. Remove Default welcome message:



    Theme_Root/Magento_Theme/layout/default.xml




    <referenceBlock name="header" remove="true" />



    1. Remove Create an Account link:



    Theme_Root/Magento_Customer/layout/default.xml




    <referenceBlock name="register-link" remove="true" />



    1. Move Top Links to the right container:



    Theme_Root/Magento_Theme/layout/default.xml




    <move element="top.links" destination="header-wrapper" after="logo" />


    After these manipulations you need align blocks logo and links via CSS, with float.




    1. Create block with My Wish List:



    Theme_Root/Magento_Theme/layout/default.xml




    <referenceContainer name="header.panel">
    <block name="panel.top.links" class="MagentoFrameworkViewElementHtmlLinks" after="-">
    <arguments>
    <argument name="css_class" xsi:type="string">header links</argument>
    </arguments>
    </block>
    </referenceContainer>



    Theme_Root/Magento_Wishlist/layout/default.xml




    <move element="wish-list-link" destination="panel.top.links" />


    Write me if you need any help.






    share|improve this answer


























    • Great, but I want to keep My Wish List at the top, in its initial place. How can I do that?

      – Razvan Zamfir
      Dec 18 '17 at 16:02











    • I updated my answer. Check it, please

      – Evgeny Levinsky
      Dec 18 '17 at 16:16











    • I want to turn <ul class="clearfix header links"> <li><a href="/customer/account/">My Account</a></li> <li class="authorization-link" data-label="or"><a href="/account/login/">Sign In</a> </li> </ul> into <ul class="clearfix header links"> <li><a href="/customer/account/"><i class="fa fa-user-o" aria-hidden="true"></i> My Account</a></li> <li class="authorization-link" data-label="or"><a href="/account/login/"><i class="fa fa-sign-in" aria-hidden="true"></i> Sign In</a> </li> </ul> In other words, how do I add icons?

      – Razvan Zamfir
      Dec 19 '17 at 10:03













    • In first link you can add css class on block via <argument name="class" xsi:type="string"> ... </argument> in Theme_Root/Magento_Customer/layout/default.xml. In second link you need override vendor/magento/module-customer/view/frontend/templates/account/link/authorization.phtml in your theme and adjust it.

      – Evgeny Levinsky
      Dec 19 '17 at 17:12














    5





    +50







    5





    +50



    5




    +50






    1. Remove Compare Products link:



    Theme_Root/Magento_Catalog/layout/default.xml




    <referenceBlock name="catalog.compare.link" remove="true" />



    1. Remove Default welcome message:



    Theme_Root/Magento_Theme/layout/default.xml




    <referenceBlock name="header" remove="true" />



    1. Remove Create an Account link:



    Theme_Root/Magento_Customer/layout/default.xml




    <referenceBlock name="register-link" remove="true" />



    1. Move Top Links to the right container:



    Theme_Root/Magento_Theme/layout/default.xml




    <move element="top.links" destination="header-wrapper" after="logo" />


    After these manipulations you need align blocks logo and links via CSS, with float.




    1. Create block with My Wish List:



    Theme_Root/Magento_Theme/layout/default.xml




    <referenceContainer name="header.panel">
    <block name="panel.top.links" class="MagentoFrameworkViewElementHtmlLinks" after="-">
    <arguments>
    <argument name="css_class" xsi:type="string">header links</argument>
    </arguments>
    </block>
    </referenceContainer>



    Theme_Root/Magento_Wishlist/layout/default.xml




    <move element="wish-list-link" destination="panel.top.links" />


    Write me if you need any help.






    share|improve this answer
















    1. Remove Compare Products link:



    Theme_Root/Magento_Catalog/layout/default.xml




    <referenceBlock name="catalog.compare.link" remove="true" />



    1. Remove Default welcome message:



    Theme_Root/Magento_Theme/layout/default.xml




    <referenceBlock name="header" remove="true" />



    1. Remove Create an Account link:



    Theme_Root/Magento_Customer/layout/default.xml




    <referenceBlock name="register-link" remove="true" />



    1. Move Top Links to the right container:



    Theme_Root/Magento_Theme/layout/default.xml




    <move element="top.links" destination="header-wrapper" after="logo" />


    After these manipulations you need align blocks logo and links via CSS, with float.




    1. Create block with My Wish List:



    Theme_Root/Magento_Theme/layout/default.xml




    <referenceContainer name="header.panel">
    <block name="panel.top.links" class="MagentoFrameworkViewElementHtmlLinks" after="-">
    <arguments>
    <argument name="css_class" xsi:type="string">header links</argument>
    </arguments>
    </block>
    </referenceContainer>



    Theme_Root/Magento_Wishlist/layout/default.xml




    <move element="wish-list-link" destination="panel.top.links" />


    Write me if you need any help.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Dec 18 '17 at 16:15

























    answered Dec 18 '17 at 15:47









    Evgeny LevinskyEvgeny Levinsky

    8731310




    8731310













    • Great, but I want to keep My Wish List at the top, in its initial place. How can I do that?

      – Razvan Zamfir
      Dec 18 '17 at 16:02











    • I updated my answer. Check it, please

      – Evgeny Levinsky
      Dec 18 '17 at 16:16











    • I want to turn <ul class="clearfix header links"> <li><a href="/customer/account/">My Account</a></li> <li class="authorization-link" data-label="or"><a href="/account/login/">Sign In</a> </li> </ul> into <ul class="clearfix header links"> <li><a href="/customer/account/"><i class="fa fa-user-o" aria-hidden="true"></i> My Account</a></li> <li class="authorization-link" data-label="or"><a href="/account/login/"><i class="fa fa-sign-in" aria-hidden="true"></i> Sign In</a> </li> </ul> In other words, how do I add icons?

      – Razvan Zamfir
      Dec 19 '17 at 10:03













    • In first link you can add css class on block via <argument name="class" xsi:type="string"> ... </argument> in Theme_Root/Magento_Customer/layout/default.xml. In second link you need override vendor/magento/module-customer/view/frontend/templates/account/link/authorization.phtml in your theme and adjust it.

      – Evgeny Levinsky
      Dec 19 '17 at 17:12



















    • Great, but I want to keep My Wish List at the top, in its initial place. How can I do that?

      – Razvan Zamfir
      Dec 18 '17 at 16:02











    • I updated my answer. Check it, please

      – Evgeny Levinsky
      Dec 18 '17 at 16:16











    • I want to turn <ul class="clearfix header links"> <li><a href="/customer/account/">My Account</a></li> <li class="authorization-link" data-label="or"><a href="/account/login/">Sign In</a> </li> </ul> into <ul class="clearfix header links"> <li><a href="/customer/account/"><i class="fa fa-user-o" aria-hidden="true"></i> My Account</a></li> <li class="authorization-link" data-label="or"><a href="/account/login/"><i class="fa fa-sign-in" aria-hidden="true"></i> Sign In</a> </li> </ul> In other words, how do I add icons?

      – Razvan Zamfir
      Dec 19 '17 at 10:03













    • In first link you can add css class on block via <argument name="class" xsi:type="string"> ... </argument> in Theme_Root/Magento_Customer/layout/default.xml. In second link you need override vendor/magento/module-customer/view/frontend/templates/account/link/authorization.phtml in your theme and adjust it.

      – Evgeny Levinsky
      Dec 19 '17 at 17:12

















    Great, but I want to keep My Wish List at the top, in its initial place. How can I do that?

    – Razvan Zamfir
    Dec 18 '17 at 16:02





    Great, but I want to keep My Wish List at the top, in its initial place. How can I do that?

    – Razvan Zamfir
    Dec 18 '17 at 16:02













    I updated my answer. Check it, please

    – Evgeny Levinsky
    Dec 18 '17 at 16:16





    I updated my answer. Check it, please

    – Evgeny Levinsky
    Dec 18 '17 at 16:16













    I want to turn <ul class="clearfix header links"> <li><a href="/customer/account/">My Account</a></li> <li class="authorization-link" data-label="or"><a href="/account/login/">Sign In</a> </li> </ul> into <ul class="clearfix header links"> <li><a href="/customer/account/"><i class="fa fa-user-o" aria-hidden="true"></i> My Account</a></li> <li class="authorization-link" data-label="or"><a href="/account/login/"><i class="fa fa-sign-in" aria-hidden="true"></i> Sign In</a> </li> </ul> In other words, how do I add icons?

    – Razvan Zamfir
    Dec 19 '17 at 10:03







    I want to turn <ul class="clearfix header links"> <li><a href="/customer/account/">My Account</a></li> <li class="authorization-link" data-label="or"><a href="/account/login/">Sign In</a> </li> </ul> into <ul class="clearfix header links"> <li><a href="/customer/account/"><i class="fa fa-user-o" aria-hidden="true"></i> My Account</a></li> <li class="authorization-link" data-label="or"><a href="/account/login/"><i class="fa fa-sign-in" aria-hidden="true"></i> Sign In</a> </li> </ul> In other words, how do I add icons?

    – Razvan Zamfir
    Dec 19 '17 at 10:03















    In first link you can add css class on block via <argument name="class" xsi:type="string"> ... </argument> in Theme_Root/Magento_Customer/layout/default.xml. In second link you need override vendor/magento/module-customer/view/frontend/templates/account/link/authorization.phtml in your theme and adjust it.

    – Evgeny Levinsky
    Dec 19 '17 at 17:12





    In first link you can add css class on block via <argument name="class" xsi:type="string"> ... </argument> in Theme_Root/Magento_Customer/layout/default.xml. In second link you need override vendor/magento/module-customer/view/frontend/templates/account/link/authorization.phtml in your theme and adjust it.

    – Evgeny Levinsky
    Dec 19 '17 at 17:12













    0














    I want to remove My Account My Wish List Sign In Default welcome msg! Create an Account form header






    share|improve this answer








    New contributor




    Vishal Sondagar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.

























      0














      I want to remove My Account My Wish List Sign In Default welcome msg! Create an Account form header






      share|improve this answer








      New contributor




      Vishal Sondagar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.























        0












        0








        0







        I want to remove My Account My Wish List Sign In Default welcome msg! Create an Account form header






        share|improve this answer








        New contributor




        Vishal Sondagar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.










        I want to remove My Account My Wish List Sign In Default welcome msg! Create an Account form header







        share|improve this answer








        New contributor




        Vishal Sondagar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        share|improve this answer



        share|improve this answer






        New contributor




        Vishal Sondagar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        answered 23 mins ago









        Vishal SondagarVishal Sondagar

        1




        1




        New contributor




        Vishal Sondagar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.





        New contributor





        Vishal Sondagar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






        Vishal Sondagar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






























            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%2f205987%2fmagento-2-move-the-top-links-in-the-same-container-as-the-logo%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

            What other Star Trek series did the main TNG cast show up in?

            Berlina muro

            Berlina aerponto