#20816 closed enhancement (fixed)
custom-background $args enhancement
| Reported by: | frumph | Owned by: | duck_ |
|---|---|---|---|
| Priority: | high | Milestone: | 3.8 |
| Component: | Customize | Version: | 3.4 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description (last modified by )
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
Attachments (2)
Change History (25)
#16
@
13 years ago
Do you think we can change the background-position argument to background-position-x? This to just make sure we're consistent with naming and in case we ever add a background-position-y argument.
#18
@
13 years ago
Reviewing this a bit more, I agree with adding -x to position. However, I am not sure these should be background-position, background-attachment, etc. We already have default-color and default-image. These too are defaults. So I am thinking default-position-x, default-attachment, etc. Alternatively, drop the prefix all together.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
20816.diff lets themes define background position, repeat, and attachment for their default image in
add_theme_support()