Hi, our megamenu are replaced from Events Manager’s content on Events Manager events’ pages.
We need to manual edit the file located at “wp-content/themes/[Newspaper] or [Newspaper-child]/includes/wp_booster/td_menu.php”
on line 135:
from this
$content_post = get_post($td_mega_menu_page_id);
$content = $content_post->post_content;
$content = apply_filters('the_content', $content);
$content = str_replace(']]>', ']]>', $content);
to this:
$content_post = get_post($td_mega_menu_page_id);
$content = $content_post->post_content;
remove_filter('the_content', 'em_content');
remove_filter('the_content', 'EM_Event_Post::the_content');
remove_filter('the_content', 'EM_Location_Post::the_content');
$content = apply_filters('the_content', $content);
add_filter('the_content', 'EM_Location_Post::the_content');
add_filter('the_content', 'EM_Event_Post::the_content');
add_filter('the_content', 'em_content');
$content = str_replace(']]>', ']]>', $content);
in order to not permit EM overwrite MM contents.
I hope this can help.
Regards
Andrea Pallotta
Hi Andrea Pallotta,
Please keep in mind that our theme does not have any Event’s Manager’s content. Most likely, this comes from a plugin which has this functionality, like Events Manager plugin, right? Unfortunately, this type of plugins is not tested with the theme, and we have no idea about the theme behavior, sorry! I am able that exists a lot of plugins for WordPress, but this cannot mean that any other plugin will work as expected with our theme product, sorry! The core files of our theme are entirely complex, and this type of plugin can interact with these and cause a lot of unknown issues. Before releasing a new plugin to be compatible with our theme, notice that our developer’s team should make some deeper investigations with the theme and where appropriate to make some adjustments for a better performance. This is not a simple task and we cannot provide support and custom implementation for untested plugins, sorry!
Thanks for your understanding!
Hi Catalin, thank you for your fast reply.
I know that EM is not related to Newspaper Theme, I simply wrote this topic for anyone have the same problem.
Events Manager completly rewrite the the_content() of WP (which includes Megamenu elements) in EM’s pages.