- Timestamp:
- 12/14/2018 02:21:38 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/5.0 merged: 43800
- Property svn:mergeinfo changed
-
trunk/src/wp-content/themes/twentyseventeen/functions.php
r43659 r44148 118 118 add_editor_style( array( 'assets/css/editor-style.css', twentyseventeen_fonts_url() ) ); 119 119 120 // Load regular editor styles into the new block-based editor. 121 add_theme_support( 'editor-styles' ); 122 123 // Load default block styles. 124 add_theme_support( 'wp-block-styles' ); 125 120 126 // Define and register starter content to showcase the theme on new sites. 121 127 $starter_content = array( … … 440 446 wp_enqueue_style( 'twentyseventeen-style', get_stylesheet_uri() ); 441 447 448 // Theme block stylesheet. 449 wp_enqueue_style( 'twentyseventeen-block-style', get_theme_file_uri( '/assets/css/blocks.css' ), array( 'twentyseventeen-style' ), '1.0' ); 450 442 451 // Load the dark colorscheme. 443 452 if ( 'dark' === get_theme_mod( 'colorscheme', 'light' ) || is_customize_preview() ) { … … 490 499 491 500 /** 501 * Enqueue editor styles for Gutenberg 502 * 503 * @since Twenty Seventeen 1.8 504 */ 505 function twentyseventeen_block_editor_styles() { 506 // Block styles. 507 wp_enqueue_style( 'twentyseventeen-block-editor-style', get_theme_file_uri( '/assets/css/editor-blocks.css' ) ); 508 // Add custom fonts. 509 wp_enqueue_style( 'twentyseventeen-fonts', twentyseventeen_fonts_url(), array(), null ); 510 } 511 add_action( 'enqueue_block_editor_assets', 'twentyseventeen_block_editor_styles' ); 512 513 /** 492 514 * Add custom image sizes attribute to enhance responsive image functionality 493 515 * for content images.
Note: See TracChangeset
for help on using the changeset viewer.