Questions tagged [topmenu]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3
votes
4answers
3k views

Magento 2 - add link with content to top menu

I am wondering how to add programmatically a new link (to main top menu in header) with submenu (custom content visible on hover - styles is not a problem). How to achieve that, via xml or via (php) ...
5
votes
4answers
7k views

Varnish top navigation menu gone

Well first of all i am using the Porto theme and using the SW mega menu. I'm currently running magento 2.0.4. It seems that when i turn on varnish on my webhost and configure everything that it is ...
3
votes
1answer
9k views

Magento 2: How can I add External URL in top menu [duplicate]

Is there a way to create a custom menu item in the magento 2 Top menu which links to an external URL. Static page only category doesnt suit my need because I just want to redirect the user to a ...
12
votes
2answers
27k views

Magento 2 Navigation Menu not showing

I am new to Magento so please bear with me :D I have successfully created a theme that is a child to the blank theme. I am trying to get the menu working and for the life of me cannot see why it is ...
1
vote
1answer
137 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 ...
6
votes
2answers
6k views

How to add custom link in main menu in Magento 2?

I want to add CMS pages and Contact page link in the main menu. How to add these links in the main menu and their submenu as well?
6
votes
2answers
10k views

how to add and customize items in menu/nav bar in header [closed]

I am customizing the ultimo theme. In the top menu or the user menu there are five links like: accounts wishlist signin signup cart I want to change these LINKS and also I want to add more links ...
3
votes
1answer
2k views

Magento 2.1: Add custom category attribute to topmenu classes

I have created a custom category attribute and it saves correctly in the database. I am now trying to add this attribute's value to the topmenu. So I have created Topmenu.php in my module (...
1
vote
1answer
749 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\...
3
votes
2answers
2k views

Magento 2 - 3rd level menu items collapsed on mobile devices

a quick question: The appearance of the menu on mobile devices in magento 2 is : with the 3rd level menu expanded by default. Is there a way to make the 3rd level menu collapsed by default? ...
1
vote
2answers
106 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 ...
1
vote
1answer
822 views

How to change the text of the sign in button on the top header of a magento store

I am currently developing my first Magento website and the whole functionality behind is overwhelming so I might have overseen the possibility to fulfill the task. I am looking for a way to change ...
0
votes
1answer
105 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 =...