Magento 2: Top Nav Menu is not appearing in Home Page












5















As the title. I've installed a fresh Magento CE 2.1.7




  • Opted out from installing sample data (no sample data)

  • Luma theme is selected by default (Luma logo appears)


Steps made:




  • Created a subcategory as sub-child of Default Category



  • Made sure both Default Category and subcategory are enabled from Admin >> Products >> Categories:



    Enable Category = Yes



    Include in Menu = Yes




  • Display Setting for category



    Anchor = Yes




enter image description here





  • Made sure Default Category is selected from Admin >> Stores >> All Stores >> Main Website Store



    Root Category = Default Category (selected from the drop-down)



  • I ran the following commands to clean cache and reindex:




    php bin/magento indexer:reindex;     
rm -R pub/static/*;
rm -R var/view_preprocessed/*;
php bin/magento cache:flush;
php bin/magento cache:clean;




  • Purged and disabled Varnish cache on server level

  • Restarted Apache

  • Upgraded Magento CE from 2.1.7 to 2.1.9


Expected result:




  • To see top navigation menu in all pages


Actual results (menu shows on all pages except home page):




  • Top navigation menu does not appear on Home Page


Picture 1. Homepage. Menu not showing:



enter image description here




  • Top navigation menu, however, appears correctly on other pages such as Customer Login and Create New Customer Account pages


Picture 2. Create new customer account page. The menu is showing:
enter image description here





I feel like I'm missing something obvious just under my nose.



How to display top navigation menu in home page?










share|improve this question

























  • ok Please refer this link. magento.stackexchange.com/questions/154287/…

    – Ravindrasinh Zala
    Sep 26 '17 at 5:44











  • @RavindrasinhZala it turned out that disabling Varnish Cache is what caused the issue. I enabled Varnish and the menu showed up again.

    – Mohammed Joraid
    Sep 26 '17 at 17:55


















5















As the title. I've installed a fresh Magento CE 2.1.7




  • Opted out from installing sample data (no sample data)

  • Luma theme is selected by default (Luma logo appears)


Steps made:




  • Created a subcategory as sub-child of Default Category



  • Made sure both Default Category and subcategory are enabled from Admin >> Products >> Categories:



    Enable Category = Yes



    Include in Menu = Yes




  • Display Setting for category



    Anchor = Yes




enter image description here





  • Made sure Default Category is selected from Admin >> Stores >> All Stores >> Main Website Store



    Root Category = Default Category (selected from the drop-down)



  • I ran the following commands to clean cache and reindex:




    php bin/magento indexer:reindex;     
rm -R pub/static/*;
rm -R var/view_preprocessed/*;
php bin/magento cache:flush;
php bin/magento cache:clean;




  • Purged and disabled Varnish cache on server level

  • Restarted Apache

  • Upgraded Magento CE from 2.1.7 to 2.1.9


Expected result:




  • To see top navigation menu in all pages


Actual results (menu shows on all pages except home page):




  • Top navigation menu does not appear on Home Page


Picture 1. Homepage. Menu not showing:



enter image description here




  • Top navigation menu, however, appears correctly on other pages such as Customer Login and Create New Customer Account pages


Picture 2. Create new customer account page. The menu is showing:
enter image description here





I feel like I'm missing something obvious just under my nose.



How to display top navigation menu in home page?










share|improve this question

























  • ok Please refer this link. magento.stackexchange.com/questions/154287/…

    – Ravindrasinh Zala
    Sep 26 '17 at 5:44











  • @RavindrasinhZala it turned out that disabling Varnish Cache is what caused the issue. I enabled Varnish and the menu showed up again.

    – Mohammed Joraid
    Sep 26 '17 at 17:55
















5












5








5








As the title. I've installed a fresh Magento CE 2.1.7




  • Opted out from installing sample data (no sample data)

  • Luma theme is selected by default (Luma logo appears)


Steps made:




  • Created a subcategory as sub-child of Default Category



  • Made sure both Default Category and subcategory are enabled from Admin >> Products >> Categories:



    Enable Category = Yes



    Include in Menu = Yes




  • Display Setting for category



    Anchor = Yes




enter image description here





  • Made sure Default Category is selected from Admin >> Stores >> All Stores >> Main Website Store



    Root Category = Default Category (selected from the drop-down)



  • I ran the following commands to clean cache and reindex:




    php bin/magento indexer:reindex;     
rm -R pub/static/*;
rm -R var/view_preprocessed/*;
php bin/magento cache:flush;
php bin/magento cache:clean;




  • Purged and disabled Varnish cache on server level

  • Restarted Apache

  • Upgraded Magento CE from 2.1.7 to 2.1.9


Expected result:




  • To see top navigation menu in all pages


Actual results (menu shows on all pages except home page):




  • Top navigation menu does not appear on Home Page


Picture 1. Homepage. Menu not showing:



enter image description here




  • Top navigation menu, however, appears correctly on other pages such as Customer Login and Create New Customer Account pages


Picture 2. Create new customer account page. The menu is showing:
enter image description here





I feel like I'm missing something obvious just under my nose.



How to display top navigation menu in home page?










share|improve this question
















As the title. I've installed a fresh Magento CE 2.1.7




  • Opted out from installing sample data (no sample data)

  • Luma theme is selected by default (Luma logo appears)


Steps made:




  • Created a subcategory as sub-child of Default Category



  • Made sure both Default Category and subcategory are enabled from Admin >> Products >> Categories:



    Enable Category = Yes



    Include in Menu = Yes




  • Display Setting for category



    Anchor = Yes




enter image description here





  • Made sure Default Category is selected from Admin >> Stores >> All Stores >> Main Website Store



    Root Category = Default Category (selected from the drop-down)



  • I ran the following commands to clean cache and reindex:




    php bin/magento indexer:reindex;     
rm -R pub/static/*;
rm -R var/view_preprocessed/*;
php bin/magento cache:flush;
php bin/magento cache:clean;




  • Purged and disabled Varnish cache on server level

  • Restarted Apache

  • Upgraded Magento CE from 2.1.7 to 2.1.9


Expected result:




  • To see top navigation menu in all pages


Actual results (menu shows on all pages except home page):




  • Top navigation menu does not appear on Home Page


Picture 1. Homepage. Menu not showing:



enter image description here




  • Top navigation menu, however, appears correctly on other pages such as Customer Login and Create New Customer Account pages


Picture 2. Create new customer account page. The menu is showing:
enter image description here





I feel like I'm missing something obvious just under my nose.



How to display top navigation menu in home page?







magento2 menu magento-2.1.7 magento-2.1.9






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 26 '17 at 17:55









Rafael Corrêa Gomes

4,29222962




4,29222962










asked Sep 26 '17 at 5:16









Mohammed JoraidMohammed Joraid

229212




229212













  • ok Please refer this link. magento.stackexchange.com/questions/154287/…

    – Ravindrasinh Zala
    Sep 26 '17 at 5:44











  • @RavindrasinhZala it turned out that disabling Varnish Cache is what caused the issue. I enabled Varnish and the menu showed up again.

    – Mohammed Joraid
    Sep 26 '17 at 17:55





















  • ok Please refer this link. magento.stackexchange.com/questions/154287/…

    – Ravindrasinh Zala
    Sep 26 '17 at 5:44











  • @RavindrasinhZala it turned out that disabling Varnish Cache is what caused the issue. I enabled Varnish and the menu showed up again.

    – Mohammed Joraid
    Sep 26 '17 at 17:55



















ok Please refer this link. magento.stackexchange.com/questions/154287/…

– Ravindrasinh Zala
Sep 26 '17 at 5:44





ok Please refer this link. magento.stackexchange.com/questions/154287/…

– Ravindrasinh Zala
Sep 26 '17 at 5:44













@RavindrasinhZala it turned out that disabling Varnish Cache is what caused the issue. I enabled Varnish and the menu showed up again.

– Mohammed Joraid
Sep 26 '17 at 17:55







@RavindrasinhZala it turned out that disabling Varnish Cache is what caused the issue. I enabled Varnish and the menu showed up again.

– Mohammed Joraid
Sep 26 '17 at 17:55












3 Answers
3






active

oldest

votes


















6














After following major tutorials and troubleshooting web pages it turned out the issue lies with my hosting configuration.



Varnish Cache seems to be the cause of the menu disappearing. Disabling Varnish causes the menu to not show.



The solution is to enable Varnish Cache and the menu appeared again which is kinda bizarre for me and hard to understand.



enter image description here



Update:



It turns out there were different Vanish Cache on/off switches and I had them mixed up on/off.



-The first Varnish cache control I have is the main switch at the server level (from the interface of my hosting panel).



-The second one for application level (also from the interface of my hosting panel), which allows me to control enabling Varnish for individual applications on the server, rather than the whole server like in the main switch.



-The third one is from within Magento Admin (Magento 2 admin panel - configuration page).



I had my settings mixed up. (I cannot really remember by the time of writing this update) I think I had my Magento application Varnish settings enabled from Admin but disabled from the server or the application level.



Now if I want to use Varnish I make sure all settings are aligned. Switched on from top to bottom (server level to Magento level) and switch off from bottom to top.






share|improve this answer

































    0














    please try these commands



      php bin/magento setup:static-content:deploy
    php bin/magento cache:clean





    share|improve this answer


























    • Thank you for your answer. I just tried your suggestion. Sadly did still the same result. The menu appears on other pages but not home page.

      – Mohammed Joraid
      Sep 26 '17 at 5:25





















    0














    Take a look to this issue:



    https://github.com/magento/magento2/issues/3421



    Summary:



    In some cases when Varnish Cache is activated, due to a Magento 2 and Varnish issue, the navigation menu can disappear.



    In order to solve this Magento issue, you can remove the TTL attribute (remove ttl="3600") from /vendor/magento/module-theme/view/frontend/layout/default.xml, and the navigation menu will appear.






    share|improve this answer








    New contributor




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





















    • Thank you for sharing. This is indeed adding more explanation to the issue.

      – Mohammed Joraid
      yesterday











    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%2f194702%2fmagento-2-top-nav-menu-is-not-appearing-in-home-page%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    3 Answers
    3






    active

    oldest

    votes








    3 Answers
    3






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    6














    After following major tutorials and troubleshooting web pages it turned out the issue lies with my hosting configuration.



    Varnish Cache seems to be the cause of the menu disappearing. Disabling Varnish causes the menu to not show.



    The solution is to enable Varnish Cache and the menu appeared again which is kinda bizarre for me and hard to understand.



    enter image description here



    Update:



    It turns out there were different Vanish Cache on/off switches and I had them mixed up on/off.



    -The first Varnish cache control I have is the main switch at the server level (from the interface of my hosting panel).



    -The second one for application level (also from the interface of my hosting panel), which allows me to control enabling Varnish for individual applications on the server, rather than the whole server like in the main switch.



    -The third one is from within Magento Admin (Magento 2 admin panel - configuration page).



    I had my settings mixed up. (I cannot really remember by the time of writing this update) I think I had my Magento application Varnish settings enabled from Admin but disabled from the server or the application level.



    Now if I want to use Varnish I make sure all settings are aligned. Switched on from top to bottom (server level to Magento level) and switch off from bottom to top.






    share|improve this answer






























      6














      After following major tutorials and troubleshooting web pages it turned out the issue lies with my hosting configuration.



      Varnish Cache seems to be the cause of the menu disappearing. Disabling Varnish causes the menu to not show.



      The solution is to enable Varnish Cache and the menu appeared again which is kinda bizarre for me and hard to understand.



      enter image description here



      Update:



      It turns out there were different Vanish Cache on/off switches and I had them mixed up on/off.



      -The first Varnish cache control I have is the main switch at the server level (from the interface of my hosting panel).



      -The second one for application level (also from the interface of my hosting panel), which allows me to control enabling Varnish for individual applications on the server, rather than the whole server like in the main switch.



      -The third one is from within Magento Admin (Magento 2 admin panel - configuration page).



      I had my settings mixed up. (I cannot really remember by the time of writing this update) I think I had my Magento application Varnish settings enabled from Admin but disabled from the server or the application level.



      Now if I want to use Varnish I make sure all settings are aligned. Switched on from top to bottom (server level to Magento level) and switch off from bottom to top.






      share|improve this answer




























        6












        6








        6







        After following major tutorials and troubleshooting web pages it turned out the issue lies with my hosting configuration.



        Varnish Cache seems to be the cause of the menu disappearing. Disabling Varnish causes the menu to not show.



        The solution is to enable Varnish Cache and the menu appeared again which is kinda bizarre for me and hard to understand.



        enter image description here



        Update:



        It turns out there were different Vanish Cache on/off switches and I had them mixed up on/off.



        -The first Varnish cache control I have is the main switch at the server level (from the interface of my hosting panel).



        -The second one for application level (also from the interface of my hosting panel), which allows me to control enabling Varnish for individual applications on the server, rather than the whole server like in the main switch.



        -The third one is from within Magento Admin (Magento 2 admin panel - configuration page).



        I had my settings mixed up. (I cannot really remember by the time of writing this update) I think I had my Magento application Varnish settings enabled from Admin but disabled from the server or the application level.



        Now if I want to use Varnish I make sure all settings are aligned. Switched on from top to bottom (server level to Magento level) and switch off from bottom to top.






        share|improve this answer















        After following major tutorials and troubleshooting web pages it turned out the issue lies with my hosting configuration.



        Varnish Cache seems to be the cause of the menu disappearing. Disabling Varnish causes the menu to not show.



        The solution is to enable Varnish Cache and the menu appeared again which is kinda bizarre for me and hard to understand.



        enter image description here



        Update:



        It turns out there were different Vanish Cache on/off switches and I had them mixed up on/off.



        -The first Varnish cache control I have is the main switch at the server level (from the interface of my hosting panel).



        -The second one for application level (also from the interface of my hosting panel), which allows me to control enabling Varnish for individual applications on the server, rather than the whole server like in the main switch.



        -The third one is from within Magento Admin (Magento 2 admin panel - configuration page).



        I had my settings mixed up. (I cannot really remember by the time of writing this update) I think I had my Magento application Varnish settings enabled from Admin but disabled from the server or the application level.



        Now if I want to use Varnish I make sure all settings are aligned. Switched on from top to bottom (server level to Magento level) and switch off from bottom to top.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Oct 5 '18 at 2:15

























        answered Sep 26 '17 at 17:51









        Mohammed JoraidMohammed Joraid

        229212




        229212

























            0














            please try these commands



              php bin/magento setup:static-content:deploy
            php bin/magento cache:clean





            share|improve this answer


























            • Thank you for your answer. I just tried your suggestion. Sadly did still the same result. The menu appears on other pages but not home page.

              – Mohammed Joraid
              Sep 26 '17 at 5:25


















            0














            please try these commands



              php bin/magento setup:static-content:deploy
            php bin/magento cache:clean





            share|improve this answer


























            • Thank you for your answer. I just tried your suggestion. Sadly did still the same result. The menu appears on other pages but not home page.

              – Mohammed Joraid
              Sep 26 '17 at 5:25
















            0












            0








            0







            please try these commands



              php bin/magento setup:static-content:deploy
            php bin/magento cache:clean





            share|improve this answer















            please try these commands



              php bin/magento setup:static-content:deploy
            php bin/magento cache:clean






            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Sep 26 '17 at 5:21

























            answered Sep 26 '17 at 5:18









            Ravindrasinh ZalaRavindrasinh Zala

            1,223322




            1,223322













            • Thank you for your answer. I just tried your suggestion. Sadly did still the same result. The menu appears on other pages but not home page.

              – Mohammed Joraid
              Sep 26 '17 at 5:25





















            • Thank you for your answer. I just tried your suggestion. Sadly did still the same result. The menu appears on other pages but not home page.

              – Mohammed Joraid
              Sep 26 '17 at 5:25



















            Thank you for your answer. I just tried your suggestion. Sadly did still the same result. The menu appears on other pages but not home page.

            – Mohammed Joraid
            Sep 26 '17 at 5:25







            Thank you for your answer. I just tried your suggestion. Sadly did still the same result. The menu appears on other pages but not home page.

            – Mohammed Joraid
            Sep 26 '17 at 5:25













            0














            Take a look to this issue:



            https://github.com/magento/magento2/issues/3421



            Summary:



            In some cases when Varnish Cache is activated, due to a Magento 2 and Varnish issue, the navigation menu can disappear.



            In order to solve this Magento issue, you can remove the TTL attribute (remove ttl="3600") from /vendor/magento/module-theme/view/frontend/layout/default.xml, and the navigation menu will appear.






            share|improve this answer








            New contributor




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





















            • Thank you for sharing. This is indeed adding more explanation to the issue.

              – Mohammed Joraid
              yesterday
















            0














            Take a look to this issue:



            https://github.com/magento/magento2/issues/3421



            Summary:



            In some cases when Varnish Cache is activated, due to a Magento 2 and Varnish issue, the navigation menu can disappear.



            In order to solve this Magento issue, you can remove the TTL attribute (remove ttl="3600") from /vendor/magento/module-theme/view/frontend/layout/default.xml, and the navigation menu will appear.






            share|improve this answer








            New contributor




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





















            • Thank you for sharing. This is indeed adding more explanation to the issue.

              – Mohammed Joraid
              yesterday














            0












            0








            0







            Take a look to this issue:



            https://github.com/magento/magento2/issues/3421



            Summary:



            In some cases when Varnish Cache is activated, due to a Magento 2 and Varnish issue, the navigation menu can disappear.



            In order to solve this Magento issue, you can remove the TTL attribute (remove ttl="3600") from /vendor/magento/module-theme/view/frontend/layout/default.xml, and the navigation menu will appear.






            share|improve this answer








            New contributor




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










            Take a look to this issue:



            https://github.com/magento/magento2/issues/3421



            Summary:



            In some cases when Varnish Cache is activated, due to a Magento 2 and Varnish issue, the navigation menu can disappear.



            In order to solve this Magento issue, you can remove the TTL attribute (remove ttl="3600") from /vendor/magento/module-theme/view/frontend/layout/default.xml, and the navigation menu will appear.







            share|improve this answer








            New contributor




            Javier Rojano 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




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









            answered 2 days ago









            Javier RojanoJavier Rojano

            101




            101




            New contributor




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





            New contributor





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






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













            • Thank you for sharing. This is indeed adding more explanation to the issue.

              – Mohammed Joraid
              yesterday



















            • Thank you for sharing. This is indeed adding more explanation to the issue.

              – Mohammed Joraid
              yesterday

















            Thank you for sharing. This is indeed adding more explanation to the issue.

            – Mohammed Joraid
            yesterday





            Thank you for sharing. This is indeed adding more explanation to the issue.

            – Mohammed Joraid
            yesterday


















            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%2f194702%2fmagento-2-top-nav-menu-is-not-appearing-in-home-page%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

            Display a custom attribute below product name in the front-end Magento 1.9.3.8