'block_widget', 'description' => __('A widget that displays a Block ', 'flatsome'), 'customize_selective_refresh' => true); $control_ops = array('id_base' => 'block_widget' ); parent::__construct( 'block_widget', __('Flatsome Blocks', 'flatsome'), $widget_ops, $control_ops ); } function widget($args, $instance) { $cache = wp_cache_get('block_widget', 'widget'); if ( !is_array($cache) ) $cache = array(); if ( ! isset( $args['widget_id'] ) ) $args['widget_id'] = $this->id; if ( isset( $cache[ $args['widget_id'] ] ) ) { echo $cache[ $args['widget_id'] ]; return; } ob_start(); extract($args); ?> flush_widget_cache(); return $instance; } function flush_widget_cache() { wp_cache_delete('block_widget', 'widget'); } function form( $instance ) { $blocks = array(false => '-- None --'); $posts = flatsome_get_post_type_items('blocks'); if($posts){ foreach ($posts as $value) { $blocks[$value->post_name] = $value->post_title; } } $title = isset( $instance['title'] ) ? esc_attr( $instance['title'] ) : ''; $instance['block'] = isset( $instance['block'] ) ? esc_attr( $instance['block'] ) : ''; ?>

You can edit blocks width the UX Builder if you hover them in the front-end.Learn more about Blocks