updated theme Twenty Seventeen
version 2.5
This commit is contained in:
@ -44,6 +44,11 @@ function twentyseventeen_setup() {
|
||||
*/
|
||||
add_theme_support( 'title-tag' );
|
||||
|
||||
/*
|
||||
* Enables custom line height for blocks
|
||||
*/
|
||||
add_theme_support( 'custom-line-height' );
|
||||
|
||||
/*
|
||||
* Enable support for Post Thumbnails on posts and pages.
|
||||
*
|
||||
@ -79,6 +84,7 @@ function twentyseventeen_setup() {
|
||||
'caption',
|
||||
'script',
|
||||
'style',
|
||||
'navigation-widgets',
|
||||
)
|
||||
);
|
||||
|
||||
@ -448,7 +454,7 @@ function twentyseventeen_scripts() {
|
||||
wp_enqueue_style( 'twentyseventeen-fonts', twentyseventeen_fonts_url(), array(), null );
|
||||
|
||||
// Theme stylesheet.
|
||||
wp_enqueue_style( 'twentyseventeen-style', get_stylesheet_uri(), array(), '20190507' );
|
||||
wp_enqueue_style( 'twentyseventeen-style', get_stylesheet_uri(), array(), '20201208' );
|
||||
|
||||
// Theme block stylesheet.
|
||||
wp_enqueue_style( 'twentyseventeen-block-style', get_theme_file_uri( '/assets/css/blocks.css' ), array( 'twentyseventeen-style' ), '20190105' );
|
||||
@ -509,7 +515,7 @@ add_action( 'wp_enqueue_scripts', 'twentyseventeen_scripts' );
|
||||
*/
|
||||
function twentyseventeen_block_editor_styles() {
|
||||
// Block styles.
|
||||
wp_enqueue_style( 'twentyseventeen-block-editor-style', get_theme_file_uri( '/assets/css/editor-blocks.css' ), array(), '20190328' );
|
||||
wp_enqueue_style( 'twentyseventeen-block-editor-style', get_theme_file_uri( '/assets/css/editor-blocks.css' ), array(), '20201208' );
|
||||
// Add custom fonts.
|
||||
wp_enqueue_style( 'twentyseventeen-fonts', twentyseventeen_fonts_url(), array(), null );
|
||||
}
|
||||
@ -663,3 +669,8 @@ require get_parent_theme_file_path( '/inc/customizer.php' );
|
||||
* SVG icons functions and filters.
|
||||
*/
|
||||
require get_parent_theme_file_path( '/inc/icon-functions.php' );
|
||||
|
||||
/**
|
||||
* Block Patterns.
|
||||
*/
|
||||
require get_template_directory() . '/inc/block-patterns.php';
|
||||
|
Reference in New Issue
Block a user