Procházet zdrojové kódy

remove wp-container id for every block

tags/1.0.3
Alej před 3 roky
rodič
revize
57cfc3c4be
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  1. 4
    0
      vue-theme/functions.php

+ 4
- 0
vue-theme/functions.php Zobrazit soubor

@@ -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' );

Načítá se…
Zrušit
Uložit