Title: Max Mega Menu Support
Last modified: August 31, 2016

---

# Max Mega Menu Support

 *  [megamenu](https://wordpress.org/support/users/megamenu/)
 * (@megamenu)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/max-mega-menu-support/)
 * Hi there,
 * Nice theme 🙂
 * I’m the developer of Max Mega Menu. When it’s enabled for the main menu, the 
   ID on the `<div>` that wraps the menu is changed from ‘menu’ to ‘mega-menu-wrap-
   custom_menu’.
 * This is causing a JavaScript error when ddsmoothmenu is initialised, and in turn
   it stops the max mega menu mobile menu from functioning.
 * I was wondering if you could make a change in the custom.js file to fix this:
 * From:
 *     ```
       //Menu Init
           ddsmoothmenu.init({
           	mainmenuid: "menu", //menu DIV id
           	orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
           	classname: 'ddsmoothmenu', //class added to menu's outer DIV
           	//customtheme: ["#1c5a80", "#18374a"],
           	contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
           });
       ```
   
 * To:
 *     ```
       if ( $('#menu').length ) {
           //Menu Init
           ddsmoothmenu.init({
           	mainmenuid: "menu", //menu DIV id
           	orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
           	classname: 'ddsmoothmenu', //class added to menu's outer DIV
           	//customtheme: ["#1c5a80", "#18374a"],
           	contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
           });
       }
       ```
   
 * ?
 * Regards,
    Tom

Viewing 1 replies (of 1 total)

 *  [Chip-Parade](https://wordpress.org/support/users/chip-parade/)
 * (@chip-parade)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/max-mega-menu-support/#post-6966142)
 * I’d Like to second this request (on the free theme too) as I use the same theme/
   plugin combo 🙂

Viewing 1 replies (of 1 total)

The topic ‘Max Mega Menu Support’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/poloray/1.3.2/screenshot.png)
 * Poloray
 * [Support Threads](https://wordpress.org/support/theme/poloray/)
 * [Active Topics](https://wordpress.org/support/theme/poloray/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/poloray/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/poloray/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Chip-Parade](https://wordpress.org/support/users/chip-parade/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/max-mega-menu-support/#post-6966142)
 * Status: not resolved