Hide category in top menu?

Saturday, May 4, 2024 2:17:49 AM
  • Posted: Tuesday, July 28, 2020 1:18 AM
  • 34
Hi everyone!

I want hide category in top menu, but page this category should be active.
How to do this?
0
  • Posted: Tuesday, July 28, 2020 5:32 AM
  • 953
Hi,

You can uncheck the "Include in top menu" setting.
Best regards,
Patryk

GrandNode Team
0
  • Posted: Tuesday, July 28, 2020 5:41 AM
  • 34
Hi,
""Include in top menu" setting?"

Where is the checkbox located?
0
  • Posted: Tuesday, July 28, 2020 5:48 AM
  • 34
"Include in top menu" checkbox don't work.
0
  • Posted: Tuesday, July 28, 2020 6:20 AM
  • 953
It's on the category edition page. I've checked it a while ago on our demo and everything works fine. Have you tested it on default template or on custom theme? If on custom theme, maybe there is a missing if statement, for mentioned setting.
Best regards,
Patryk

GrandNode Team
0
  • Posted: Tuesday, July 28, 2020 6:24 AM
  • 34
I check in file _CategoryLine.TopMenu.cshtml

@if (Model.Category.IncludeInTopMenu) {
        <li class="@(Model.Category.SubCategories.Count() == 0 ? "nav-item": "nav-item dropdown" )">....

Need to check this or another file?
0
  • Posted: Tuesday, July 28, 2020 9:35 AM
  • 953
It's the correct setting. And as you can see on our demo, https://demo.grandnode.com it works fine. If not, can you simulate the issue on it? Or provide me steps, what should I do to simulate it in my store?
Best regards,
Patryk

GrandNode Team
0
  • Posted: Tuesday, July 28, 2020 9:42 AM
  • 34
Hi!
Yes, shop have custom theme and my problem was in ...Grand.Web\Views\Shared\Components\TopMenu\Default.cshtml
I fix this problem thanks.
0
  • Posted: Tuesday, July 28, 2020 9:49 AM
  • 953
Great! I'm glad that it's working now.
Best regards,
Patryk

GrandNode Team
1
back to top
Filters