[wp-trac] [WordPress Trac] #20816: custom-background $args enhancement
WordPress Trac
wp-trac at lists.automattic.com
Sat Jun 2 04:56:47 UTC 2012
#20816: custom-background $args enhancement
-------------------------+-----------------------------
Reporter: frumph | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version: 3.4
Severity: normal | Keywords:
-------------------------+-----------------------------
Looking to have added the rest of the arguments to pass through the $args
to include the rest of the appearance -> background parameters including
but not limited to position(x/y), repeat and attachment.
`add_theme_support('custom-background', $args);`
Example:
`
array(
'default-color' => '000000',
'default-image' => get_stylesheet_directory_uri()
. '/images/background-wolfbw.jpg',
'repeat' => 'no-repeat',
'position-x' => 'center',
'attachment' => 'fixed' );
`
ie. the repeat position(x/y) and attachment parameters
Main themes even child themes have looks which sometimes need to
incorporate fixed or positioning that cannot be set with the current
$arguments and it would benefit theme designers to allow those arguments
to be passed
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20816>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list