By using’s services you agree to our Cookies Use and Data Transfer outside the EU.
We and our partners operate globally and use cookies, including for analytics, personalisation, ads and Newsletters.

  • Join the Best Unofficial Elementor Support forum

    Provide or get advice on everything Elementor and Wordpress, ask questions, gain confirmation or just become apart of a friendly, like minded community who love Wordpress and Elementor

    Join us!
elementor official

Shortcode Breaks the Editor



New Member
Hello Guys,

i have a problem with my shortcode.

I insert it over elementor shortcode widget on a template for a woocommerce single product page and it´s works fine in the frontend.
Go back to elementor editor in the backend i became the error "critical error"!

What is wrong? Can help?

Here is the code:

// Create Shortcode display-attributes
// Shortcode: [display-attributes]

function create_displayattributes_shortcode() {

global $post;
global $product;
$informationen = get_field( 'information', $post->ID );

ob_start(); ?>
<div class="single-product-extra-info">
echo wc_display_product_attributes( $product );
echo apply_filters( 'the_content', $information );

$output = ob_get_clean();
return $output;

add_shortcode( 'display-attributes', 'create_displayattributes_shortcode' );

Thanks for your effort!!!

Latest posts

Latest Resources

Other Elementor Resources

elementor official