wordpress/php-fpm/wordpress_files/themes/intentionally-blank/functions.php

49 lines
1.3 KiB
PHP
Raw Permalink Normal View History

2020-05-22 03:40:23 +02:00
<?php
/**
* Intentionally Blank Theme functions
*
* @package WordPress
* @subpackage intentionally-blank
*/
if ( ! function_exists( 'blank_setup' ) ) :
/**
* Sets up theme defaults and registers the various WordPress features that
* this theme supports.
*/
function blank_setup() {
load_theme_textdomain( 'intentionally-blank' );
add_theme_support( 'automatic-feed-links' );
add_theme_support( 'title-tag' );
// This theme allows users to set a custom background.
add_theme_support( 'custom-background', apply_filters( 'intentionally_blank_custom_background_args', array(
'default-color' => 'f5f5f5',
) ) );
add_theme_support( 'custom-logo' );
add_theme_support( 'custom-logo', array(
'height' => 256,
'width' => 256,
'flex-height' => true,
'flex-width' => true,
'header-text' => array( 'site-title', 'site-description' ),
) );
/**
* Sets up theme defaults and registers the various WordPress features that
* this theme supports.
*/
function blank_custom_logo() {
if ( function_exists( 'the_custom_logo' ) ) {
the_custom_logo();
}
}
}
endif; // end function_exists blank_setup.
add_action( 'after_setup_theme', 'blank_setup' );
add_action( 'customize_register', function( $wp_customize ) {
$wp_customize->remove_section( 'static_front_page' );
} );