Use background-position-x. Props iammattthomas. see #12186
git-svn-id: https://develop.svn.wordpress.org/trunk@13188 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f3a3e63a5b
commit
1cd2f4c113
@ -1404,11 +1404,11 @@ function _custom_background_cb() {
|
||||
$repeat = 'background-repeat: repeat;';
|
||||
$position = get_theme_mod('background_position');
|
||||
if ( 'center' == $position )
|
||||
$position = 'background-position: center;';
|
||||
$position = 'background-position-x: center;';
|
||||
elseif ( 'right' == $position )
|
||||
$position = 'background-position: right;';
|
||||
$position = 'background-position-x: right;';
|
||||
else
|
||||
$position = 'background-position: left;';
|
||||
$position = 'background-position-x: left;';
|
||||
$attachment = get_theme_mod('background_attachment');
|
||||
if ( 'scroll' == $attachment )
|
||||
$attachment = 'background-attachment: scroll;';
|
||||
|
Loading…
Reference in New Issue
Block a user