• Hey guys, any chance you could add support for GenerateBlocks? At the moment if I add any element from GB it’s not rendering CSS and I need to add snippet to functions.php to make it available. But that’s for single id (popup).

    To make GenerateBlocks in Advanced Popup (single) I have snippet:

    add_filter('generateblocks_do_content', function ($content) {
    	$post = get_post(1729);
    	return $content . $post->post_content;
    });

    So it’s definitely doable because you have css integration for powerkit blocks…

    // Integration css of powerkit blocks.
    if ( function_exists( 'cnvs_gutenberg' ) ) {
    // Parse blocks.
    $blocks = parse_blocks( $popup->post_content );
    
    $blocks_css = cnvs_gutenberg()->parse_blocks_css( $blocks );
    
    	if ( $blocks_css ) {
    	echo sprintf( '<style>%s</style>', $blocks_css ); // XSS.
    	}
    }

    please add GenerateBlocks integration

  • The topic ‘Support for GenerateBlocks’ is closed to new replies.