Hi Greg, thank you very much for the attention. I have tested the Mage Menu plugin with other page builders and the problem persists so i think it has to be with the Mega menu plugin. it renders its content like this, i don’t know if you can guide me in the right direction to make it work.
static function display_mega_menu_contents($output, $item, $depth, $args) {
$item = (array) $item;
$args = (array) $args;
if (empty($args['hide_mega_menu']) && $depth == 0 && empty($item['has_children'])) {
$mega_menu_id = get_post_meta($item['ID'], '_cf_mega_menu_id', true);
if (!empty($mega_menu_id) && ($mega_menu = get_post($mega_menu_id)) && !is_wp_error($mega_menu)) {
// We have a mega menu to display.
$wrapper_classes = apply_filters('cf-mega-menu-classes', array('cf-mega-menu', 'sub-menu'), $item, $depth, $args);
wp_reset_postdata();
setup_postdata($mega_menu);
ob_start();
the_content();
$contents = ob_get_clean();
if (!empty($contents)) {
$output .= '<ul class="' . esc_attr(implode(' ', $wrapper_classes)) . "\">\n";
$output .= $contents;
$output .= "</ul>\n";
}
}
}
return $output;
}
If you quickly see anything that could be a problem please tell me if you have time.
Thank you very much.
Best Regards