Dont be discouraged by at first sight complicated steps. You will be doing it just once per website (one Megamenu)
If you have questions just name number of step.
I tried many, many ways to call PHP templates. All works, but "query_posts" and category is the only way giving you chance to edit submenus directly in Themler, without switching Themler templates all the time.
- Make one new post category
- Name it for instance "Menu Items Category".
- Make one new Post, name it for instance "Menu Item 1" (You can use real names of your menu items, but I would not advise to not cofuse them with already existing Pages)
Make visibility for Post - Private. Post will NOT have any content.
Make one new custom Themler template
- Name it Menu Item 1 (it will be more, depending how your menu is build, so stick to number orders)
- Click on all 3 instances for "Customize template style" (important)
- Disable header and footer for this custom template (important)
- Remove all Post controls from template (or leave them if it is something specific you are showing in Megamenu)
Set other options, disable pagination, etc. (You can do all this later from Home template directly, That is the point of all this)
Go to the Home template and insert new CMS Code Control.
- Inside insert theese snippets for PHP/HTML and CSS. Theese are starter snippets, edit them with some code editor after wish and need. Work as it is. (code at the bottom of comment)
- Copy CMS control and Paste link on all templates you will they be shared (I guess as it is Megamenu it will be all templates. Skip your custom templates for Menu Items, important)
Save all and now you can directly click on all megamenu Items and edit submenu directly on Home template, with Themler. Open Megamenu items with right click on it and Open link. Insert all controls, widgets, HTML, maps, login, search widgets, insert rows and decide in how many columns content of submenu will show. It is up to you, no limits.
Repeat process depending how many menu items you have. (New post, new Themler custom template, only one category dont make new)
In CMS code I set only for first menu item, adapt it. "'cat'=> 82," is your "Menu Items Category" ID. Find it yourself in backend. it is same category for all Menu Items, no need to change that in code.
"theme_blog_15();" is your Themler template for this specific menu item. You will find in theme root files of your menu items templates. open them and inside you can read this code "theme_blog_15();". Just adapt numers, nothing else.