With the update of WordPress to version 3.4 came some important feature improvements that changed the way certain key components work, including how the header image and background functionality are implemented. This in turn can mean some of the old methods of making changes to WordPress elements suddenly won’t work anymore if you’re trying to apply old code techniques within the new and improved WordPress 3.4 environment.
Recent WordPress 3.4 upgrades to stock WordPress themes have made a previously well functioning component in my WordPress 3: Building Child Themes course currently non-functional.
Specifically, in movie 2.3 (Creating a functions file and changing the header image size) I instruct the viewer to redefine the height and width of the header image using the following code in a child theme functions.php file:
Unfortunately, with the new implementation of the header-image function, this no longer works. A new filter function is needed.
To get the result you want without messing things up in the process, a modified version of the code above is necessary. So, to resize the header image in a WordPress 3.4 Twenty Ten child theme you use the following code:
An update is imminent
We are hard at work rolling out an update to the WordPress 3: Building Child Themes course to bring it in-line with the new WordPress 3.4 version of Twenty Ten. Until then, using the code above should solve the problem.
Do you have other WordPress 3.4 questions? Feel free to ask them here and I will do his best to get back to you as soon as possible.
Interested in learning more about WordPress?
• The complete WordPress 3: Building Child Themes course on lynda.com
• WordPress Essential Training
• WordPress 3: Developing Secure Sites
• Dreamweaver and WordPress: Building Mobile Sites