瀏覽代碼

remove wp-container id for every block

tags/1.0.3
Alej 3 年之前
父節點
當前提交
57cfc3c4be
共有 1 個檔案被更改,包括 4 行新增0 行删除
  1. 4
    0
      vue-theme/functions.php

+ 4
- 0
vue-theme/functions.php 查看文件

@@ -146,6 +146,7 @@ function no_default_jquery( ) {
146 146
     }
147 147
 }
148 148
 add_action( 'init', 'no_default_jquery' );
149
+
149 150
 // REMOVE emoji support
150 151
 remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
151 152
 remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
@@ -156,6 +157,9 @@ remove_action( 'admin_print_styles', 'print_emoji_styles' );
156 157
 function webapptiv_remove_block_library_css() {
157 158
     wp_dequeue_style( 'wp-block-library' );
158 159
 }
160
+// REMOVE wp-container-id class for every block which causes wierd dislay: flex inclusions
161
+remove_filter( 'render_block', 'wp_render_layout_support_flag', 10, 2 );
162
+
159 163
 // add_action( 'wp_enqueue_scripts', 'webapptiv_remove_block_library_css' );
160 164
 
161 165
 // header( 'Access-Control-Allow-Origin: http://localhost:8080' );

Loading…
取消
儲存