Trouble disabling top navigation drop down menu












1














I'm attempting to disable the navigation drop down menu on a store. Using the maximal depth setting in the stores configuration works however its a global setting which effects stores I would like to keep the menu active on. I also thought changing the expanded variable under topmenu.phtml to false would disable the feature but that has not worked either. Any help is appreciated.










share|improve this question














bumped to the homepage by Community yesterday


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.




















    1














    I'm attempting to disable the navigation drop down menu on a store. Using the maximal depth setting in the stores configuration works however its a global setting which effects stores I would like to keep the menu active on. I also thought changing the expanded variable under topmenu.phtml to false would disable the feature but that has not worked either. Any help is appreciated.










    share|improve this question














    bumped to the homepage by Community yesterday


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      1












      1








      1







      I'm attempting to disable the navigation drop down menu on a store. Using the maximal depth setting in the stores configuration works however its a global setting which effects stores I would like to keep the menu active on. I also thought changing the expanded variable under topmenu.phtml to false would disable the feature but that has not worked either. Any help is appreciated.










      share|improve this question













      I'm attempting to disable the navigation drop down menu on a store. Using the maximal depth setting in the stores configuration works however its a global setting which effects stores I would like to keep the menu active on. I also thought changing the expanded variable under topmenu.phtml to false would disable the feature but that has not worked either. Any help is appreciated.







      magento2






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 10 '16 at 9:03









      themanwhoknowstheman

      78521129




      78521129





      bumped to the homepage by Community yesterday


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community yesterday


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          2 Answers
          2






          active

          oldest

          votes


















          0














          The MauroNigrele solution hides the nav menu but leaves the nav-sections. To completely remove the nav use this code:



          <referenceBlock name="navigation.sections" remove="true"/>





          share|improve this answer





























            -1














            You can remove it by layout




            • Create a Custom theme for that/those store(S)

            • Remove the navigation from the layout:



            app/design/frontend/{Vendor}/{theme}/Magento_Theme/layout/default.xml




            <?xml version="1.0"?>
            <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
            <body>

            ...
            <referenceContainer name="page.top">
            <referenceBlock name="catalog.topnav" remove="true" />
            </referenceContainer>
            ...

            </body>
            </page>





            share|improve this answer























            • @Rakesh you made an unnecessary edit Magento_Theme is the folder name you actual need to use
              – MauroNigrele
              Feb 10 '16 at 11:21










            • Thanks, but I just need to remove the drop down portion of the menu.
              – themanwhoknowstheman
              Feb 10 '16 at 16:31










            • Do you want to show only the guest level categoríes?
              – MauroNigrele
              Feb 10 '16 at 17:21










            • If by guest, you mean the parent categories that are visible without hovering, then yes.
              – themanwhoknowstheman
              Feb 10 '16 at 20:26










            • Ahahaha I meant 'first level' (autocomplete error)
              – MauroNigrele
              Feb 10 '16 at 20:31











            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%2f101156%2ftrouble-disabling-top-navigation-drop-down-menu%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









            0














            The MauroNigrele solution hides the nav menu but leaves the nav-sections. To completely remove the nav use this code:



            <referenceBlock name="navigation.sections" remove="true"/>





            share|improve this answer


























              0














              The MauroNigrele solution hides the nav menu but leaves the nav-sections. To completely remove the nav use this code:



              <referenceBlock name="navigation.sections" remove="true"/>





              share|improve this answer
























                0












                0








                0






                The MauroNigrele solution hides the nav menu but leaves the nav-sections. To completely remove the nav use this code:



                <referenceBlock name="navigation.sections" remove="true"/>





                share|improve this answer












                The MauroNigrele solution hides the nav menu but leaves the nav-sections. To completely remove the nav use this code:



                <referenceBlock name="navigation.sections" remove="true"/>






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Aug 4 '16 at 9:27









                Fred K

                23637




                23637

























                    -1














                    You can remove it by layout




                    • Create a Custom theme for that/those store(S)

                    • Remove the navigation from the layout:



                    app/design/frontend/{Vendor}/{theme}/Magento_Theme/layout/default.xml




                    <?xml version="1.0"?>
                    <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
                    <body>

                    ...
                    <referenceContainer name="page.top">
                    <referenceBlock name="catalog.topnav" remove="true" />
                    </referenceContainer>
                    ...

                    </body>
                    </page>





                    share|improve this answer























                    • @Rakesh you made an unnecessary edit Magento_Theme is the folder name you actual need to use
                      – MauroNigrele
                      Feb 10 '16 at 11:21










                    • Thanks, but I just need to remove the drop down portion of the menu.
                      – themanwhoknowstheman
                      Feb 10 '16 at 16:31










                    • Do you want to show only the guest level categoríes?
                      – MauroNigrele
                      Feb 10 '16 at 17:21










                    • If by guest, you mean the parent categories that are visible without hovering, then yes.
                      – themanwhoknowstheman
                      Feb 10 '16 at 20:26










                    • Ahahaha I meant 'first level' (autocomplete error)
                      – MauroNigrele
                      Feb 10 '16 at 20:31
















                    -1














                    You can remove it by layout




                    • Create a Custom theme for that/those store(S)

                    • Remove the navigation from the layout:



                    app/design/frontend/{Vendor}/{theme}/Magento_Theme/layout/default.xml




                    <?xml version="1.0"?>
                    <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
                    <body>

                    ...
                    <referenceContainer name="page.top">
                    <referenceBlock name="catalog.topnav" remove="true" />
                    </referenceContainer>
                    ...

                    </body>
                    </page>





                    share|improve this answer























                    • @Rakesh you made an unnecessary edit Magento_Theme is the folder name you actual need to use
                      – MauroNigrele
                      Feb 10 '16 at 11:21










                    • Thanks, but I just need to remove the drop down portion of the menu.
                      – themanwhoknowstheman
                      Feb 10 '16 at 16:31










                    • Do you want to show only the guest level categoríes?
                      – MauroNigrele
                      Feb 10 '16 at 17:21










                    • If by guest, you mean the parent categories that are visible without hovering, then yes.
                      – themanwhoknowstheman
                      Feb 10 '16 at 20:26










                    • Ahahaha I meant 'first level' (autocomplete error)
                      – MauroNigrele
                      Feb 10 '16 at 20:31














                    -1












                    -1








                    -1






                    You can remove it by layout




                    • Create a Custom theme for that/those store(S)

                    • Remove the navigation from the layout:



                    app/design/frontend/{Vendor}/{theme}/Magento_Theme/layout/default.xml




                    <?xml version="1.0"?>
                    <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
                    <body>

                    ...
                    <referenceContainer name="page.top">
                    <referenceBlock name="catalog.topnav" remove="true" />
                    </referenceContainer>
                    ...

                    </body>
                    </page>





                    share|improve this answer














                    You can remove it by layout




                    • Create a Custom theme for that/those store(S)

                    • Remove the navigation from the layout:



                    app/design/frontend/{Vendor}/{theme}/Magento_Theme/layout/default.xml




                    <?xml version="1.0"?>
                    <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
                    <body>

                    ...
                    <referenceContainer name="page.top">
                    <referenceBlock name="catalog.topnav" remove="true" />
                    </referenceContainer>
                    ...

                    </body>
                    </page>






                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Feb 10 '16 at 14:18

























                    answered Feb 10 '16 at 9:47









                    MauroNigrele

                    2,577926




                    2,577926












                    • @Rakesh you made an unnecessary edit Magento_Theme is the folder name you actual need to use
                      – MauroNigrele
                      Feb 10 '16 at 11:21










                    • Thanks, but I just need to remove the drop down portion of the menu.
                      – themanwhoknowstheman
                      Feb 10 '16 at 16:31










                    • Do you want to show only the guest level categoríes?
                      – MauroNigrele
                      Feb 10 '16 at 17:21










                    • If by guest, you mean the parent categories that are visible without hovering, then yes.
                      – themanwhoknowstheman
                      Feb 10 '16 at 20:26










                    • Ahahaha I meant 'first level' (autocomplete error)
                      – MauroNigrele
                      Feb 10 '16 at 20:31


















                    • @Rakesh you made an unnecessary edit Magento_Theme is the folder name you actual need to use
                      – MauroNigrele
                      Feb 10 '16 at 11:21










                    • Thanks, but I just need to remove the drop down portion of the menu.
                      – themanwhoknowstheman
                      Feb 10 '16 at 16:31










                    • Do you want to show only the guest level categoríes?
                      – MauroNigrele
                      Feb 10 '16 at 17:21










                    • If by guest, you mean the parent categories that are visible without hovering, then yes.
                      – themanwhoknowstheman
                      Feb 10 '16 at 20:26










                    • Ahahaha I meant 'first level' (autocomplete error)
                      – MauroNigrele
                      Feb 10 '16 at 20:31
















                    @Rakesh you made an unnecessary edit Magento_Theme is the folder name you actual need to use
                    – MauroNigrele
                    Feb 10 '16 at 11:21




                    @Rakesh you made an unnecessary edit Magento_Theme is the folder name you actual need to use
                    – MauroNigrele
                    Feb 10 '16 at 11:21












                    Thanks, but I just need to remove the drop down portion of the menu.
                    – themanwhoknowstheman
                    Feb 10 '16 at 16:31




                    Thanks, but I just need to remove the drop down portion of the menu.
                    – themanwhoknowstheman
                    Feb 10 '16 at 16:31












                    Do you want to show only the guest level categoríes?
                    – MauroNigrele
                    Feb 10 '16 at 17:21




                    Do you want to show only the guest level categoríes?
                    – MauroNigrele
                    Feb 10 '16 at 17:21












                    If by guest, you mean the parent categories that are visible without hovering, then yes.
                    – themanwhoknowstheman
                    Feb 10 '16 at 20:26




                    If by guest, you mean the parent categories that are visible without hovering, then yes.
                    – themanwhoknowstheman
                    Feb 10 '16 at 20:26












                    Ahahaha I meant 'first level' (autocomplete error)
                    – MauroNigrele
                    Feb 10 '16 at 20:31




                    Ahahaha I meant 'first level' (autocomplete error)
                    – MauroNigrele
                    Feb 10 '16 at 20:31


















                    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.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • 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%2f101156%2ftrouble-disabling-top-navigation-drop-down-menu%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

                    1300-talet

                    1300-talet

                    Has there ever been an instance of an active nuclear power plant within or near a war zone?