25 votes
Accepted

Magento 2 Navigation Menu not showing

Solution 1 : You need to have all your categories UNDER the "Default Category". Then they should show. Solution 2 : Verify that Default Category Is Active (Enable category = "yes") and "Include ...
Manthan Dave's user avatar
  • 9,816
13 votes

Varnish top navigation menu gone

I had the same issue, I found a solution for this. I just removed the ttl attribute from /vendor/magento/module-theme/view/frontend/layout/default.xml and the menu bar appeared again.
Amit Naraniwal's user avatar
11 votes
Accepted

Create link dynamically in customer account navigation in Magento 2

Check this for more info: blog.mageprince.com You need to create block for dynamic link 1) Define Your block class {vendor}\{Module}\Block\Customer\Link in navigation link <?xml version="1.0&...
Prince Patel's user avatar
  • 22.7k
10 votes
Accepted

How to show Bar Navigation Menu Magento 2 Blank Theme

Late to the party here, and I think you've probably already figured it out by now, but you need to have categories UNDER the "Default Category". Then they should show.
Jim's user avatar
  • 537
10 votes
Accepted

Magento 2.0.x Remove Account Tab in Mobile Menu

Add this code in you active theme's default.xml <referenceContainer name="page.top"> <referenceBlock name="store.links" remove="true" /> </referenceContainer> And run command -...
Dipesh Rangani's user avatar
10 votes

Magento 2 : Missing Account Links in Mobile Menu

This happened to me when I made a custom theme. I created a theme.js file in app/design/fontend/<CUSTOM_THEME>/default/web/js/ to use some library I added. But I forgot to copy the code that ...
Cladiuss's user avatar
  • 1,271
7 votes
Accepted

Magento 2 : How to show all active categories in layered navigation with its sub-categories?

Need to override following model : Magento\CatalogSearch\Model\Layer\Filter\Category Override by creating new Module and in di.xml file by following way : <preference for="Magento\CatalogSearch\...
Nitesh Kuyate's user avatar
7 votes
Accepted

Magento 2 - add link with content to top menu

You can add elements to the top menu using the event page_block_html_topmenu_gethtml_before. Step 1 - So you need to create a module with these files (all the files should be in app/code/[Namespace]/[...
Shireen N's user avatar
  • 946
6 votes
Accepted

How to move the top links to the navigation bar Magento 2

What we need to do To move a block you need to use the <move> XML instruction, the official docs for this can be found here Finding the block name To move a block you first need to find out ...
Ben Crook's user avatar
  • 15.7k
6 votes
Accepted

How to Change Order and Rename Links in customer navigation?

Please follow the below steps. I have tried in default magento 1.9.3.1 and got the solution for this. Path: app/design/frontend/rwd/default/layout/customer.xml <reference name="left_first"> ...
Nagaraju Kasa's user avatar
6 votes

Where "use in layered navigation" attribute property is stored in the database?

That value stored in catalog_eav_attribute table. If you simply want to get all attributes that are set as filterable via the admin section then you need to filter on the table catalog_eav_attribute ...
Nikunj Vadariya's user avatar
6 votes

Magento 2 How to add Home link in navigation bar!

I have done by just overriding this file in my custom theme. app/design/frontend/Vendor/theme/Magento_Theme/templates/html/topmenu.phtml <?php $columnsLimit = $block->getColumnsLimit() ?: ...
Ravi Oza's user avatar
  • 478
5 votes

Magento 2 Navigation Menu not showing

If you have tried all the other solutions and checked all the other basic things (enabled, correct root category...) then I might have the solution for you! If the category was every removed from the ...
craig.tadlock's user avatar
5 votes
Accepted

Display a custom navigation block instead of the default one

To show your Custom Block Navigation , you simply need to create a widget Go to admin > content > widgets > add widget Select type as CMS static Block and choose your theme whichever you are ...
Manoj Deswal's user avatar
  • 5,785
5 votes
Accepted

Change Customer Account Sidebar Menu Navigation Title

The reason why it's not working is because it's getting overwritten in the luma theme. If you want to change that, create a theme that extends the luma theme and change it there. Check the file ...
drew7721's user avatar
  • 838
4 votes
Accepted

magento2: Increase the dropdown speed of nav-menu

In your theme, make this file: Your/theme/Magento_Theme/templates/html/topmenu.phtml <?php /** * Copyright © 2016 Magento. All rights reserved. * See COPYING.txt for license details. */ // @...
Aaron Allen's user avatar
  • 9,009
4 votes
Accepted

Remove ui-menu-icon from main navigation

I believe this is generated by the Menu widget, which is an extension of the jQuery UI menu. So to prevent this markup from being added you will either need to not use the jQuery UI based menu, or to ...
Ben Crook's user avatar
  • 15.7k
4 votes
Accepted

Magento 2 How to add Home link in navigation bar!

You can do it by creating a simple module: Create registration file: app/code/Magenik/NavLink/registration.php <?php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\...
Nikunj Vadariya's user avatar
4 votes

Show sibling child categories in left.phtml navigation in Magento 1.9

For achieve it you need to edit below file from your theme: frontend/XYZ/THEME/template/catalog/layer/view.phtml <?php /** * Magento * * NOTICE OF LICENSE * * This source file is subject to ...
Chirag Rajput's user avatar
4 votes

Magento 2 open navigation menu on click on desktop

No need to override lib/web/mage/menu.js Just go to app/design/frontent/YourVendor/YourTheme/Magento_Theme/templates/html/topmenu.phtml Inside ul data-mage-init add "mediaBreakpoint": "(max-...
Mathew Lawrence's user avatar
4 votes
Accepted

Magento 2 CE : Add child navigation items to navigation menu

Well, if you have a look at the default template for catalog.topnav block you can see that it's setup to render any child block after the menu: <nav class="navigation" data-action="navigation"> ...
Javier Villanueva's user avatar
3 votes

Magento 2 - Adding a CMS page link to menu

I've done it in the following way without any changes in the code: Content from the page (PageA) is put in a new block (BlockA). I make a new category with only content and without products (...
Bobby's user avatar
  • 31
3 votes
Accepted

Dropdown too long, how to add more columns?

This is possible with some css trickery: See: http://www.w3schools.com/cssref/css3_pr_columns.asp ul { columns: 2; -webkit-columns: 2; -moz-columns: 2; } http://jsfiddle.net/HP85j/1463/
tecjam's user avatar
  • 4,033
3 votes

How to add Pages to Main Nav Magento 2

Another way would be: Create a new category and call it "Home". SEO Settings for this category: URL slug "startpage" or something else. Rewrite "/startpage" to "/". Move it to first position. Done.
Max's user avatar
  • 1,844
3 votes

Changing main navigation?

Firstly, you need to create your own theme and override which module you want to do. 1. you need to override module-theme in your theme: layout and template /root/test/kingfisherflyshop-new/app/...
Hoang Huynh Nhat's user avatar
3 votes

Show content of phtml file on static block Magento 2

You need to use the following format to display templates inside CMS blocks. {{block class="Block/Class/Here" template="PackageName_ ModuleName::path/here/template-name.phtml"}}
Ben Crook's user avatar
  • 15.7k
3 votes

Magento 2 : How to Remove Customer Account Navigation Link Without XML

In Magento 2 these links are controlled by the class Magento\Customer\Block\Account\Navigation. This block is added to the sidebar in the xml Magento/Customer/view/frontend/layout/customer_account.xml....
David Manners's user avatar
3 votes
Accepted

Display only one category

Code looks like it's from https://github.com/riconeitzel/VertNav, so please try to add this to: app/design/frontend/THEME/PACKAGE/layout/local.xml: <reference name="catalog.vertnav"> <...
sv3n's user avatar
  • 11.7k
3 votes

place responsive menu link on nav bar instead of moving top-left in magento-2

Changing Three lines/bar to text 1) In your extended theme inside magento_theme module as below make some edit in logo.phtml app/design/frontend/vendorname/themename/Magento_Theme/templates/html/...
Manoj Deswal's user avatar
  • 5,785
3 votes
Accepted

How to move cart in navigation section

After move minicart to navigation section you must add child element in phtml file <move element="minicart" destination="navigation.sections" /> Override vendor/magento/module-theme/view/...
Prince Patel's user avatar
  • 22.7k

Only top scored, non community-wiki answers of a minimum length are eligible