[wp-trac] [WordPress Trac] #16919: style.css can sometimes conflict with custom background image
WordPress Trac
wp-trac at lists.automattic.com
Mon Jun 6 15:12:01 UTC 2011
#16919: style.css can sometimes conflict with custom background image
-----------------------------------------+------------------
Reporter: nathanrice | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.2
Component: Themes | Version: 3.1
Severity: normal | Resolution:
Keywords: has-patch reporter-feedback |
-----------------------------------------+------------------
Comment (by nathanrice):
@westi,
Is that new? Also, when trying to use it, like so, in functions.php:
{{{
add_custom_background();
define( 'BACKGROUND_IMAGE',
'http://www.google.com/images/logos/ps_logo2.png' );
}}}
... it works on the front end, but doesn't work on the custom background
upload page. When I look at the source, this is what is output:
{{{
<div id="custom-background-image" style="background-color: #000000;
background-image: url(''); background-repeat: repeat; background-position:
top left"><img class="custom-background-image" src=""
style="visibility:hidden;" alt="" /><br />
<img class="custom-background-image" src="" style="visibility:hidden;"
alt="" />
</div>
}}}
Do I need to define the constant somewhere besides directly in
functions.php?
If these constants work, then I retract my former objection. The theme
should define the custom background image in functions.php, instead of
style.css, and the problem should go away.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16919#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list