functions.php 469 B

1234567891011121314
  1. <?php
  2. /**
  3. * Zerif binds smoothscroll events to the top level menu items. Stop MMM from unbinding these events.
  4. */
  5. if ( ! function_exists('megamenu_dont_unbind_menu_events') ) {
  6. function megamenu_dont_unbind_menu_events($attributes, $menu_id, $menu_settings, $settings, $current_theme_location) {
  7. $attributes['data-unbind'] = "false";
  8. return $attributes;
  9. }
  10. }
  11. add_filter("megamenu_wrap_attributes", "megamenu_dont_unbind_menu_events", 11, 5);