Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for custom WordPress backgrounds. Makes switching backgro…
…und image or color in HTML5Press very easy.
- Loading branch information
Showing
1 changed file
with
3 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9e7e35b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't tested anything but a custom background will properly be resized to 16x16 pixel because of
background-size: 16px 16px;
in style.cssIf that's the case you should use a callback function to reset the background-size to auto if the user has a custom background image. See http://devpress.com/blog/custom-background-fix-for-theme-developers/ for inspiration on how to do it
9e7e35b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're correct Jesper! I hadn't tested with anything other than repeating as a tile. If tiling is disabled, the background shows as 16x16. I'll get a fix in place right away. Thanks for pointing that out!
9e7e35b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should take care of it @jayj:
784bf80
Thank you again!