Support for Vertical Align Backgrounds
-
Hi there! I’ve found a way to hack my current install to include vertical alignment for backgrounds, however I’d love to know how to add this to my twentyeleven child-theme. Additionally, I’m making the formal request that this be added to the next version of WordPress.
Here’s what I did:
First, I altered the /wp-admin/custom-background.php file like this:
(starting at line 139)
[Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin](starting at line 223
// BEGIN EDIT BY SHARON MURPHY 03/30/2012 // . ' background-position: top ' . get_theme_mod('background_position_x', 'left'); . ' background-position: ' . get_theme_mod('background_position_y', 'top') . ' ' . get_theme_mod('background_position_x', 'left'); // END EDIT BY SHARON MURPHY 03/30/2012(starting at line 283)
[Code moderated.]This works, which is great and all, but it would be wonderful if this were part of the WordPress Codex. 🙂
Here’s the Custom Background screen in action, with edits as listed above.
The topic ‘Support for Vertical Align Backgrounds’ is closed to new replies.