#20816 closed enhancement (fixed)
custom-background $args enhancement
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 3.8 | Priority: | high |
| Severity: | normal | Version: | 3.4 |
| Component: | Customize | Keywords: | has-patch |
| Focuses: | Cc: |
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)
#12
@
13 years ago
- Milestone changed from 3.7 to Future Release
I like this but let's wait for 3.8 on this.
#15
@
12 years ago
- Owner set to duck_
- Resolution set to fixed
- Status changed from new to closed
In 26352:
#16
@
12 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
@
12 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.
20816.diff lets themes define background position, repeat, and attachment for their default image in
add_theme_support()