Hey. I adjusted this plugin a bit and got the setting and size completely.
There is an archive here ->click
as you download, sign off here that this is not fake, others will be grateful.
I’m not sure what other changes will need to be made in the scripts but in the file
https://Www.youdomain.com/wp-includes/theme.php
do you find this:
// Background Repeat.
$repeat = get_theme_mod( 'background_repeat', get_theme_support( 'custom-background', 'default-repeat' ) );
if ( ! in_array( $repeat, array( 'repeat-x', 'repeat-y', 'repeat', 'no-repeat' ), true ) ) {$repeat = 'repeat';}
$repeat = " background-repeat: $repeat;";
and over it, you put it:
// Background Size.
$size = get_theme_mod( 'background_size', get_theme_support( 'custom-background', 'default-size' ) );
if ( ! in_array( $size, array( 'auto', 'contain', 'cover' ), true ) ) {$size = 'auto';}$size = " background-size: $size ;";
like everything, just did on the fast and nebylo time to write and memorize=)
-
This reply was modified 6 years, 11 months ago by doi7ing. Reason: forgot insert link =)