Added a default background image.

This commit is contained in:
Frank419 2024-08-27 13:01:57 +08:00
parent 4bf0648f8f
commit 0fd6d867bd
2 changed files with 8 additions and 1 deletions

BIN
defaults/bg.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

View File

@ -4,7 +4,14 @@ if ( !defined( 'WPINC' ) ) {
}
function minimalistflex_add_supports() {
add_theme_support( 'custom-background' );
add_theme_support( 'custom-background', Array(
'default-image' => get_template_directory_uri() . '/defaults/bg.png',
'default-position-x' => 'center',
'default-position-y' => 'center',
'default-size' => 'cover',
'default-repeat' => 'no-repeat',
'default-attachment' => 'fixed'
) );
add_theme_support( 'title-tag' );
add_theme_support( 'automatic-feed-links' );
add_theme_support( "align-wide" );