HEX
Server: Apache/2.4.54 (Debian)
System: Linux a5825d2beacc 4.15.0-197-generic #208-Ubuntu SMP Tue Nov 1 17:23:37 UTC 2022 x86_64
User: root (0)
PHP: 8.1.14
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/plugins/wp-megamenu/integration/zerif/functions.php
<?php

/**
 * Zerif binds smoothscroll events to the top level menu items. Stop MMM from unbinding these events.
 */
if ( ! function_exists('megamenu_dont_unbind_menu_events') ) {
    function megamenu_dont_unbind_menu_events($attributes, $menu_id, $menu_settings, $settings, $current_theme_location) {

        $attributes['data-unbind'] = "false";

        return $attributes;
    }
}
add_filter("megamenu_wrap_attributes", "megamenu_dont_unbind_menu_events", 11, 5);