I would like to find the code within the theme files responsible for building the mega menu. I’ve currently narrowed it down to the sf-header.php
file, and from what you said above the sf_main_menu()
function.
I can see that this is controlling the output of the menu itself as I can modify the code and see the output is changed. Or including a die()
statement prevents menu from being output. That’s all fine. However I am trying to find the code responsible for the actual mega menu. Where is the HTML for the mega menu generated within the php?
The reason I would like to find this code is because I’d like my mega menu to look something like this: (see attached 1.png).
I would like to output the parent menu name in the mega menu, like the “SHOP” in red in the attached image. In order to do this I need to modify the function responsible for generating the mega menu HTML surely?
Attachments:
You must be
logged in to view attached files.