| @@ -26,10 +26,17 @@ | ||
| 26 | 26 | * @since 5.0.0 |
| 27 | 27 | */ |
| 28 | 28 | public function __construct( $data = [], $args = null ) { |
| 29 | 29 | parent::__construct( $data, $args ); |
| 30 | - // Block. | |
| 31 | - wp_enqueue_style( | |
| 30 | + // Register assets; Elementor enqueues via get_*_depends() when used. | |
| 31 | + wp_register_style( | |
| 32 | + 'ctc-blocks-core', | |
| 33 | + CTC_URI . 'includes/assets/css/style.css', | |
| 34 | + [], | |
| 35 | + CTC_VER, | |
| 36 | + 'all' | |
| 37 | + ); | |
| 38 | + wp_register_style( | |
| 32 | 39 | 'ctc-el-table', |
| 33 | 40 | CTC_URI . 'includes/elementor/widgets/table/style.css', |
| 34 | 41 | ['ctc-blocks-core'], |
| 35 | 42 | CTC_VER, |