Thread Starter
hrvy
(@hrvy)
Working Perfect! This theme rocks!
Thread Starter
hrvy
(@hrvy)
I found out what the problem is: background-size isn’t inserted in the functions/dynamic-styles.php file.
To fix it:
Add $body_size = $body_background['background-size']; after line 210
Replace `if ( $body_image ) {
$styles .= ‘body { background: ‘.$body_color.’ url(‘.$body_image.’) ‘.$body_attachment.’ ‘.$body_position.’ ‘.$body_repeat.’; }’.”\n”;
}withif ( $body_image && $body_size == “” ) {
$styles .= ‘body { background: ‘.$body_color.’ url(‘.$body_image.’) ‘.$body_attachment.’ ‘.$body_position.’ ‘.$body_repeat.’; }’.”\n”;
} elseif ( $body_image && $body_size != “” ) {
$styles .= ‘body { background: ‘.$body_color.’ url(‘.$body_image.’) ‘.$body_attachment.’ ‘.$body_position.’ ‘.$body_repeat.’; background-size: ‘.$body_size.’; }’.”\n”;
}`
[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
Now background-size is added to the dynamic css and background-images: cover works fine.
Please fix it in the next release!