Use background-position-x. Props iammattthomas. see #12186
git-svn-id: http://svn.automattic.com/wordpress/trunk@13188 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
79f04413f4
commit
447b0a50da
|
@ -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