Questions tagged [topmenu]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
16 views

Magento 2 dropdown navigation sub level unreachable

The Problem When building a new theme using the Blank magento 2 theme as the parent, our dropdown navigation is not working as intended. Below is a picture of the current result. As you can see we ...
0
votes
1answer
33 views

Magento 2 : Add “View All” Link after all sub categories

How to display "View All" Link after all sub categories in Magento 2. I used this blog. But, It's display main menu and sub menu. I want to add "View All" in all sub categories ...
0
votes
0answers
8 views

Menu tree children returning 0 count

Ive got a custom module where i am extending the menutree and putting it on the left side to show the categories. It was working perfect until i needed to change the format of the categories, i'm no ...
0
votes
1answer
30 views

There has been an error processing your request. In Maganto category 2 category section

Notice: Undefined property: Plazathemes\Override\Controller\Adminhtml\Category\Edit\Interceptor::$storeManager in /home/e7iys871maju/public_html/thehighstreet/app/code/Plazathemes/Override/Controller/...
0
votes
0answers
16 views

Change Mobile Menu jQuery Hide/Show Methods Magento 2

I'm attempting to update the Hide/Show of the mobile menu on Magento 2. It's a custom theme based off Luma. I'd like to change the hide/show to slide left or right. Similar to the functionality of ...
0
votes
0answers
22 views

Magento2 add color & size filter in top navigation menu

How can I add Color, Size filter in top navigation menu of Magento2. As per my requirement when user hovers on top menu category there needs to be option of selecting sub category based on color & ...
0
votes
1answer
21 views

How to extend the topmenu.php block in magento2

I'm trying to extend the topmenu.php block to make some modifications but it doesn't work for me. I already created my custom module. Can someone help me by explaining how I can do it?
0
votes
0answers
16 views

Magento mobile navigation menu to right side of screen

I've setup a single line custom header in desktop view. With a sticker header, everything works but I can't seem to find much information on mobile site. I want to change the navigation menu in ...
1
vote
1answer
27 views

Top navigation menu merge with accout button

New to Magento 2, so sorry if I'm asking silly question, but i really need some help here. My boss wanted to create a new website using the new Magento 2.3 for his company. So we bought hosting, ...
0
votes
0answers
25 views

Overriding _getHtml function in topmenu.php makes navbar disappear

I'm trying to override the __getHtml function in topmenu.php class Topmenu extends \Magento\Theme\Block\Html\Topmenu { protected function _getHtml( \Magento\Framework\Data\Tree\Node $...
0
votes
0answers
14 views

BRAND as catalog NAVIGATION AND as FILTER option. COMMENTS requested

The goal is to use the product’s brand for the Layered navigation (Categories) , AND for the filtering of the products. Yes…. Sure we know ... we can BUY plenty of MARKETPLACE solutions... BUT maybe ...
0
votes
1answer
362 views

Add custom menu links only to mobile menu layout

I am using Magento 2.2.2 and I am trying to add some custom menu links to magento in the mobile menu layout. I tried adding a custom block with menu links by referring catalog.topnav block default....
0
votes
0answers
91 views

Sort Menu items in aphabetical order magento 2 in observer

I am creating menu items in magento 2. I is working fine and generated according to category order in admin dashboard. But I wanted to sort the menu items alphabetically on store front ir-respective ...
0
votes
0answers
53 views

How to change top menu dynamically - Magento 2

I want to change the menu dynamically in the top navigation bar. If the customer didn't log in it should be LOGIN and after the login, it should change to ORDER DETAILS. The current menu i have ...
0
votes
0answers
39 views

Magento2: Display 3 level menu on hover of level 1 menu

I want to display 3rd level submenu once we hover on 1st level menu. Like if I hover on WOMEN then Tops sub-menu auto shows. The file I assume for the menu is: /var/www/html/magento233/lib/web/...
0
votes
0answers
107 views

How to hide a category in the top menu programmatically in Magento 2?

I know that Enterprise Edition meets the requirement. What I want is to show the category "Wholesale" just to my customer group in "Wholesale". When a customer is logged in and he is in this group, ...
0
votes
0answers
22 views

Magento2 - How to create header and footer menu in custom theme managed from backend?

How to create header and footer menu in custom theme managed from backend?
0
votes
1answer
54 views

Magento 2: Topmenu 4th level categories out of place

I use Magento 2 (Version 2.3.2) with standard luma theme. If i navigate the topmenu down to the 3rd level and hover over some category, that opens up the 4th level, i often cant reach the 4th level ...
0
votes
2answers
71 views

Add a custom navbar menu

I am trying to add a custom link(contact us) in navbar menu and wanted to add the contact us page link. how to add that?
0
votes
1answer
27 views

Top navigation menu without dropdown

Magento 2.3.3, custom theme based on Blank. It's a very small store with only two categories. I want to display them in the top navigation menu without a dropdown menu. In other words, just a ...
0
votes
0answers
13 views

How to display category image with the label in the top menu in Magento 2.3

I'm new on Magento, I want to display the category image with the category name without using an extension, is it possible ? Thank you.
0
votes
3answers
120 views

How to display category image in Megamenu?

I want to display the category image in mega menu(which we have created using html) but not success. I have no idea, how to make this work so I'm here and hoping someone can help me with this. ...
0
votes
1answer
125 views

How to load Category image in top menu?

I have loaded the category and sub-category, now I need to load image as well but I'm not sure how to do that. Below is the code I have used: In block file: public function getStoreCategories($...
1
vote
1answer
203 views

How to get sub category of sub category?

I have to load parent category, sub category and its sub categories. As of now, I can able to load the parent and its sub category but I have no idea how to load its sub category. Below is the code I ...
1
vote
2answers
135 views

Magento2.3: How to get sub category for parent category?

I have installed Magento2.3.2 EE on local. I have seen that the default category menu is not working correctly so that we want to load category and subcategory collection at top menu position with our ...
0
votes
1answer
125 views

Magento2: How to load category collection?

I have to load the category collection and show it on top menu position on my Magento site. I have tried object manager concept but it's not correct method to follow so that I have to load it using ...
1
vote
0answers
122 views

Magento 2 - Move Sign Out link at the last position in customer menu dropdown

I want to move authorization-link at the last position in customer menu. How can I achieve that? UPDATE: Code from xml <referenceBlock name="top.links"> <referenceBlock name="...
0
votes
1answer
29 views

How can I add brands and flavors in navigation menu with categories?

I want to show categories of items also want to show the brands and flavors of item according to the parent it has.
0
votes
0answers
32 views

Topmenu override declaration error Magento 2.3

Topmenu override declaration getting error in Magento 2.3
2
votes
1answer
60 views

Magento 2 dropdown not showing

In my catalog I have some categories and subcategories with product. But in my top nav I don't have any dropdown. What I have missed ?
10
votes
3answers
2k views

Magento 2.3 - Topmenu tabs with wrong (cached) 'active' class

I have a small menu problem. The active tabs do not match the active class. If I disable the static_block cache it works again, so it actually looks like the menu is cached and continues to display ...
2
votes
1answer
305 views

Magento 2 Custom cache for top menu

I want to create custom cache for top menu For this I have created cache.xml <?xml version="1.0" ?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
1answer
174 views

How to customise category top menu navigation by custom category id in Magento 2?

By default Magento 2 showing the all store categories in top menu with a tree structure, I want to filter with custom category ids and only that filtered category need to show in category top menu ...
1
vote
0answers
122 views

How to set custom Dropdown on Top Menu in Magento 2

I want to set my custom div on my custom Brands link in Top Menu like I create my custom link in Top Menu the code is <?php namespace Vender\Module\Plugin\Block; use Magento\Framework\Data\...
2
votes
0answers
144 views

How to set Drop Down menu on mouse hover in TopMenu. Magento 2

How to set custom item in TopMenu to show DropDown menu on mouse hover I tried this code app/code/StackExchange/Menu/etc/di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/...
0
votes
0answers
29 views

Magento2 Which table store category ascending order or descending order store category

My project category and sub category I have set ascending order or descending order store category via script or sql query. Magento2 Which table store category & sub category ascending order or ...
1
vote
0answers
42 views

Magento 2.3.1 Multiple categories showing active, How to remove duplicate active class?

In my instance, I have updated Magento 2.3.1 from 2.3.0. I have an issue that more than one categories are showing active on each page. it shows randomly selected more than one categories. How ...
2
votes
1answer
244 views

Move top menu bar to left side in Magento 2

I want to move the top menu bar to left sidebar I have written this code <move element="catalog.topnav" destination="header-wrapper" after="block-search"/> Through this code it is moving in ...
1
vote
0answers
33 views

show top menu bar to left side in magento2

I want to replace the top menu bar to the left side i have written this code in my theme default.xml <body> <referenceContainer name="sidebar.main"> <block class="Magento\Framework\...
1
vote
1answer
224 views

Magento 2 : How to show a menu in header part?

I want to show a menu in header part in magento 2? please help me how to add in header part?
1
vote
2answers
153 views

How to start top menu by some specific category in magento 2

How to start top menu by some specific category ID in magento 2. Something like this in topmenu.phtml <?php $categoryID = 6; $_menu = $block->getHtml('level-top', 'submenu', $columnsLimit, $...
0
votes
1answer
129 views

show a custom attribute instead of full name if customer logged in M2

I want to display in top menu my custom attribute instead of full name customer, I tried to override customer.phtml under design my theme but no result please any help <? $objectManager =...
0
votes
1answer
87 views

Magento 2.2.5 Show customer header links in Category navigation menu

In Magento 2.2.5, Is there any way to display the top customer header links in Category navigation menu. Like this
0
votes
2answers
481 views

Magento 2.3 menu static block as dropdown

Currently in Magento 2.3 the dropdown menu only can show the subcategories. I want to change this so that the subcategories are not displayed but only a specific static block. Inside that block I ...
0
votes
2answers
259 views

Cannot add custom topmenu link with plugin

I want to add custom links to the topmen / a submenu in the topmenu (I need the links for custom filters). To achieve this, I have created a plugin: app/code/Vendor/Module/etc/frontend/di.xml: <...
0
votes
1answer
2k views

Magento 2 Overwrites Topmenu.php In Module But Menu Nav Disappears

My di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> <...
0
votes
0answers
25 views

Add Custom Link Under Existing Categories

I would like to add some links under a specific categories, not subcategories ! Normally you would create a subcategory under a category and so on but, I need to add some filter link which in turn it ...
1
vote
1answer
1k views

Magento2: how can i override protected function

i want to override CategoryProcessor.php namespace Magento\CatalogImportExport\Model\Import\Product; I have created my custom module but not override. my registration file <?php \Magento\...
0
votes
1answer
63 views

Magento2:importing csv category include in menu enable

when i import product's csv. All products and category created successfully also all categories include in menu. I want when i import csv , all thing will be done , but not include in menu categories. ...
0
votes
0answers
334 views

How to display categories in menu in the same order as in admin category tree?

I wonder if there way to have same sort order of categories in frontend menu as in admin panel category tree. I thought position attribute should be used for this goal, but I've found that categories ...