WordPress.org

Make WordPress Core

Opened 23 months ago

Last modified 4 months ago

#20816 closed enhancement

custom-background $args enhancement — at Initial Version

Reported by: frumph Owned by:
Milestone: 3.8 Priority: high
Severity: normal Version: 3.4
Component: Appearance Keywords: has-patch
Focuses: Cc:

Description

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

Change History (0)

Note: See TracTickets for help on using tickets.