Procházet zdrojové kódy

Added WP Gutenberg custom stylesheet support

tags/0.9.0
Alej před 5 roky
rodič
revize
3584fae0b5
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

170
 // Add featured image support
170
 // Add featured image support
171
 function craft_post_thumbnails() { add_theme_support( 'post-thumbnails' ); }
171
 function craft_post_thumbnails() { add_theme_support( 'post-thumbnails' ); }
172
 add_action( 'after_setup_theme', 'craft_post_thumbnails' );
172
 add_action( 'after_setup_theme', 'craft_post_thumbnails' );
173
+
174
+// Gutenberg custom stylesheet for editor
175
+add_theme_support('editor-styles');
176
+add_editor_style( 'editor-style.css' );

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