updated theme Twenty Sixteen version 2.3

This commit is contained in:
2020-12-10 10:44:00 +00:00
committed by Gitium
parent fe5ce864ee
commit 6c33b565cb
6 changed files with 195 additions and 25 deletions

View File

@ -108,6 +108,7 @@ if ( ! function_exists( 'twentysixteen_setup' ) ) :
'caption',
'script',
'style',
'navigation-widgets',
)
);
@ -215,6 +216,9 @@ if ( ! function_exists( 'twentysixteen_setup' ) ) :
// Indicate widget sidebars can use selective refresh in the Customizer.
add_theme_support( 'customize-selective-refresh-widgets' );
// Add support for custom line height controls.
add_theme_support( 'custom-line-height' );
}
endif; // twentysixteen_setup()
add_action( 'after_setup_theme', 'twentysixteen_setup' );
@ -376,10 +380,10 @@ function twentysixteen_scripts() {
wp_enqueue_style( 'twentysixteen-fonts', twentysixteen_fonts_url(), array(), null );
// Add Genericons, used in the main stylesheet.
wp_enqueue_style( 'genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '3.4.1' );
wp_enqueue_style( 'genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '20201208' );
// Theme stylesheet.
wp_enqueue_style( 'twentysixteen-style', get_stylesheet_uri(), array(), '20190507' );
wp_enqueue_style( 'twentysixteen-style', get_stylesheet_uri(), array(), '20201208' );
// Theme block stylesheet.
wp_enqueue_style( 'twentysixteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentysixteen-style' ), '20190102' );
@ -430,7 +434,7 @@ add_action( 'wp_enqueue_scripts', 'twentysixteen_scripts' );
*/
function twentysixteen_block_editor_styles() {
// Block styles.
wp_enqueue_style( 'twentysixteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20190102' );
wp_enqueue_style( 'twentysixteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20201208' );
// Add custom fonts.
wp_enqueue_style( 'twentysixteen-fonts', twentysixteen_fonts_url(), array(), null );
}
@ -505,6 +509,11 @@ function twentysixteen_hex2rgb( $color ) {
*/
require get_template_directory() . '/inc/template-tags.php';
/**
* Block Patterns.
*/
require get_template_directory() . '/inc/block-patterns.php';
/**
* Customizer additions.
*/