Magento 2: Top Nav Menu is not appearing in Home Page
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
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:
- Top navigation menu, however, appears correctly on other pages such as
Customer Login
andCreate New Customer Account
pages
Picture 2. Create new customer account page. The menu is showing:
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
add a comment |
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
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:
- Top navigation menu, however, appears correctly on other pages such as
Customer Login
andCreate New Customer Account
pages
Picture 2. Create new customer account page. The menu is showing:
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
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
add a comment |
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
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:
- Top navigation menu, however, appears correctly on other pages such as
Customer Login
andCreate New Customer Account
pages
Picture 2. Create new customer account page. The menu is showing:
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
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
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:
- Top navigation menu, however, appears correctly on other pages such as
Customer Login
andCreate New Customer Account
pages
Picture 2. Create new customer account page. The menu is showing:
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
magento2 menu magento-2.1.7 magento-2.1.9
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
add a comment |
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
add a comment |
3 Answers
3
active
oldest
votes
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.
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.
add a comment |
please try these commands
php bin/magento setup:static-content:deploy
php bin/magento cache:clean
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
add a comment |
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.
New contributor
Thank you for sharing. This is indeed adding more explanation to the issue.
– Mohammed Joraid
yesterday
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
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.
add a comment |
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.
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.
add a comment |
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.
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.
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.
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.
edited Oct 5 '18 at 2:15
answered Sep 26 '17 at 17:51
Mohammed JoraidMohammed Joraid
229212
229212
add a comment |
add a comment |
please try these commands
php bin/magento setup:static-content:deploy
php bin/magento cache:clean
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
add a comment |
please try these commands
php bin/magento setup:static-content:deploy
php bin/magento cache:clean
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
add a comment |
please try these commands
php bin/magento setup:static-content:deploy
php bin/magento cache:clean
please try these commands
php bin/magento setup:static-content:deploy
php bin/magento cache:clean
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
add a comment |
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
add a comment |
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.
New contributor
Thank you for sharing. This is indeed adding more explanation to the issue.
– Mohammed Joraid
yesterday
add a comment |
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.
New contributor
Thank you for sharing. This is indeed adding more explanation to the issue.
– Mohammed Joraid
yesterday
add a comment |
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.
New contributor
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.
New contributor
New contributor
answered 2 days ago
Javier RojanoJavier Rojano
101
101
New contributor
New contributor
Thank you for sharing. This is indeed adding more explanation to the issue.
– Mohammed Joraid
yesterday
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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