Questions tagged [topmenu]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
109 views

Magento Cache Issue

I am using magento 1.9 version. In my site i enabled menu highlightion when it is clicked using php. It is working fine when disabled the cache. But after enabled cache it highlights the previous ...
0
votes
1answer
538 views

Adding “view all” subcategory to all top menu's categories

I'm working in a default/default theme in Magento 1.9.3.2. I would like to make a custom module that adds to categories of products(placed at the top menu) new subcategory called "View All" that ...
1
vote
2answers
553 views

Magento 2: How programmatically comment / uncomment code php in topmenu?

Example. Top menu: Comment manually children category in topmenu.phtml: <?php /* @escapeNotVerified */ /*echo $block->getChildHtml();*/ ?> After click or hover - uncomment this code: <?...
1
vote
0answers
529 views

load top menu via ajax

I want to load the top menu with ajax , so far i have created another php file that will serve the menu on the header by trying to customise it to magento following this tutorial: http://phppot.com/...
0
votes
1answer
160 views

Edit links in header.phtml block

I need to alter the Blog url in the "The Checkout | Blog | Login/Register" block that is referenced in the theme/template/page/html/header.phtml I have looked everywhere and cannot find it. All I ...
0
votes
1answer
265 views

how to add a div in topmenu bar in magento?

I am trying to add a div inside a menu bar, it gets added but it gets displayed below the menu bar. I have added the div as given below in topmenu.phtml: <?php $_menu = $this->getHtml('level-...
1
vote
0answers
37 views
0
votes
2answers
2k views

magento2: Increase the dropdown speed of nav-menu

by default nav-menu drop-down is so slow so I want the increase the drop-down time of nav-menu.. Till now I tried editing the two files but no success.. files edited: js/navigation-menu.js, ...
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? ...
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 ...
3
votes
0answers
938 views

magento 2: \Magento\Theme\Block\Html\Topmenu $this->_menu

I am currently working on a custom block class that extends \Magento\Theme\Block\Html\Topmenu I have the following in my template file that uses my custom block class: <?php $menuTree1 = $block-...
0
votes
0answers
55 views

How to enable the top links Magento 2?

I would like to put the top links (Login,Log out...) to my menu bar. I would add the top links login option . where I change to code in Magento 2? Thanks.
1
vote
0answers
53 views

No navbar at the default themes

I am new to Magento. I want to create a menu with different pages, but I don't have a navigation bar on top. How do I add a navigationbar? This is my topmenu.phtml: <?php $_menu = $this->...
2
votes
0answers
28 views

Magento 1.7 using category as Top Navigation at the same time sub-navigation to other menu

How do I add the category as Top Navigation and at the same time it's a sub-navigation under different Top Menu. I'm using Magento 1.7. I'm not losing hope for this. I know someone here can help. ...
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 (...
3
votes
1answer
967 views

How to call Magento 2 default menu in static block?

How can I call Magento 2's default menu in a static block, so that I can call the static block wherever I want?
1
vote
1answer
134 views

How change top navigation menu from ol to ul?

I'm using Magento 1.9.2.4 and this is generating the menu as follow: <ol class="nav-primary"> <li class="level0 nav-1 first level-top"> <a href="">Item 1</a> </li&...
2
votes
1answer
480 views

Magento 2 topmenu Use of columnslimit

<?php $columnsLimit = $block->getColumnsLimit() ?: 0; ?> What is the use of $columnsLimit in Magento theme topmenu.phtml?
0
votes
0answers
78 views

How to add link to homepage in top menu? (Magento 2) [duplicate]

How do you add a link to the homepage in the top menu? It must be the first link, after this link must be the links to the categories. Thanks in advance. Extra information: my theme is based on the ...
2
votes
1answer
1k views

How to get only level 0 menu in Magento 2?

How to get only level 0 menu in Magento 2? <?php $columnsLimit = $block->getColumnsLimit() ?: 0; ?> <?php $_menu = $block->getHtml('level-top', 'submenu', $columnsLimit) ?> give ...
1
vote
1answer
31 views

How to retrive top menu html for all stores using cron

I need to get the top menu html is cron job and need to save it in the db. I used the the same functionalities as in the core to get the top menu in my cron job function. But the problem is I need to ...
1
vote
1answer
381 views

add products list in top navigation custom menu

I want to add a products list in the top nav of magento, in my theme if I create a new block with the name custom_menu_item1 this will be add in the top navigation. Exist any way to list in this block ...
4
votes
1answer
8k views

Magento 2 : How to display the category image in the topmenu

How to display the category image in the topmenu? I need to edit/overwrite the block file, but I can't get the code to actually extract the image.
1
vote
1answer
460 views

Magento Navigation How To Keep on One Line

This seems like something simple, but just not working for me. I'm trying to change my styles.css to have the navigation stay on one line. Here is the code I think is relevant. /********** < ...
1
vote
0answers
80 views

Magento2 2.0.7 enterprise - Menu Override is just showing a blank page after adding a simple override

I'm just doing a simple override to modify the structure of the menu. But weird thing is after creating the module and just extending the topMenu. It just gives a blank page. Here is my current code :...
1
vote
1answer
671 views

How to display subcategories on same height as parent-category in Magento 2 -menu

So I have multiple categories which have their subcategories and which have their subcategories etc etc.. So right now, when I'm navigating through vertical-menu, and hover over a category, the ...
0
votes
1answer
127 views

Remove anchor from one category

I have one category "A". Category A has two sub-categories B and C.Category A is coming in top menu under which two subcategories B and C are also coming. Its fine. Now I want to remove anchor tag ...
0
votes
1answer
138 views

Topmenu - hide and display certain categories

After reading the following post Magento 2: How can I add External URL in top menu I was hoping to do something similiar . We have a category attribute and want to display categories depending on a ...
1
vote
2answers
340 views

topMenu not displaying as childHtml of custom block

I have the following xml declaration. <reference name="header"> <block type="usability/features" name="usability.features" as="usability_features" template=" client/usability/...
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 ...
0
votes
0answers
395 views

Adding a custom link to a top menu / navigation based on a csutom attribute of that category

Based on a custom category attribute created I want to show a link (right next to the category in drop-down menu), on top navigation. I tried to achieve via render.ptml where the menus are created, ...
2
votes
1answer
55 views

Template Path not getting in Live

I'm Following below method to display menu and it is working in my local but when i put it live the template path is not getting it's is showing like frontend/default/theme_name/template/ the page ...
0
votes
1answer
680 views

Mobile Accordian Menu Not Working in 1.9.2.3

For some reason my Mobile Menu is no longer working. The Main Link "Collection" does expand and open, however, all other sub links don't expand. Not sure where to look to fix. Website is http://www....
0
votes
1answer
326 views

Expand navigation menu

I would like that my menu in the navigation is totally expanded. My structure is now Category 1 Sub cat A Sub cat B Category 2 Sub cat A Sub cat B Category 3 Sub cat A Sub Cat B Now, when I ...
2
votes
1answer
955 views

What Js is deploying inline style to Submenu/Top navigation

I made some changes to a Top navigation (changing ul.submenu to div.submenu), all is fine, but I cannot find where in a Js is setup this inline style: style="display: none; top: 53px; left: -0....
0
votes
0answers
464 views

Mobile Menu Not working

My Mobile Menu Not show any sub menu. menu.phtml <?php $menuData = Mage::helper('custommenu')->getMenuData(); extract($menuData); ?> <div class="nav-container"> <div id="...
0
votes
2answers
66 views

How can I add colums to magento 1.9.2.3 Nav menu?

I currently have: Shoes [ ALL ] [Men's ] [Ladies] It's pretty basic and standard. I also have brands [hidden from menu] - things like /shoes/nike.html etc. I want to add a column to the top menu ...
1
vote
1answer
2k views

How can I create a drop down menu for CMS pages in Magento

I would like to create a simple dropdown menu for CMS pages as there are main pages and then sub pages For example I have ABOUT US sub category item BIKE FITTING Road Bike fitting Mountain ...
0
votes
1answer
63 views

How to display main menu item after the seleted submenu?

Am working in magento 1.9.2.2. In mobile view, When I click the main menu the submenu items are displayed but the rest of the main menu items are sticking to the same place.I want the rest of the main ...
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 ...
0
votes
0answers
71 views

Menu is not showing up in certain browser

Hi I am working in magento 1.9.2.2. Menu and its submenu items are created and working fine.when I reduce the browser size in desktop the menus are appearing perfectly according to the media query. ...
0
votes
1answer
4k views

magento 2: get Top menu in header with dropdown

How to display a top menu link with dropdown in the header of my site?
0
votes
1answer
278 views

Sorting a collection by an attribute of an object

I am trying to add menu items in Magento using an observer and I have managed that but now I need to sort the order of the menu items by an attribute inside of each menuelement object (the attribute ...
0
votes
1answer
581 views

adding top menu items - recursively in observer

I am trying to add links to my top menu using a collection - I realised I had to do this in the observer so I set it up and it is properly working (if I delete all the code inside nothing prints) The ...
0
votes
1answer
45 views

Dropdown topmenu subcategory

I have a top menu of subcategories of Default category. Every subcategory has its own subcategories. For example, i have now a top menu with books, music, e-books, ... and books have its own ...
3
votes
1answer
385 views

Have category page main menu based on current category

I've tried Google - but maybe I just can't word this question correctly to get an answer. I want my top-level category pages to change the main menu to only show the current category. So, for ...
3
votes
3answers
16k views

How to show Bar Navigation Menu Magento 2 Blank Theme

I'm new to Magento and currently working on setting up a version 2.0 shop. However, I don't see to be able to activate/make the navigation menu bar to show in the Blank theme. Does anyone know how ...
6
votes
1answer
7k views

How to place top menu to left side bar in magento 2?

I have magento 2 installed & working fine. I have a file in app/design/frontend/vendor/theme/Magento_Theme/layout/default.xml In that from top reference <referenceContainer name="page.top"> ...
1
vote
0answers
81 views

Changing the Top Menu from Displaying Categories to Page Links?

If this is a duplicate question, please be kind enough to point me in the right direction to a solution as I've searched already :( Just configuring a Magento CE 1.9 template (by Templatemela) and ...
1
vote
0answers
81 views

Top Category links disabling click

Currently my template is using Mega Menu. /RWD/ If 'casting supplies' is clicked on an iPad it will go to the category page and not just drop down the menu. How do I change it so that when 'Casting ...