Elementor displays the same shortcode twice. One in the place where the shortcode is placed, and the other right behind the header. The problem only occurs in the editor. On the page, it displays normally. Please help. How can i fix it? I solved the problem :) I used ob_start(); and return ob_get_clean(); function elementor_shorcode_test ( ) { ob_start (); elementor_shorcode_test_output (); return ob_get_clean (); } Example Code: /*Custom Post type start*/ function cw_post_type_events() { $supports = array('title', 'editor', 'author', 'thumbnail', 'excerpt', 'custom-fields', 'comments', 'revisions', 'post-formats', ); $labels = array( 'name' => _x('Events', 'plural'), 'singular_name' => _x('Event Post', 'singular'), 'menu_name' => _x('Event Post', 'admin menu'), 'name_admin_bar' => _x('event', ...