Child-theme and plugin developers, it’s important to note how this change will affect your products. We’re slowly rolling out updates (started on July 18th, 2012 with JobRoller) which include a new file called wrapper.php.
It contains items previously found in header.php and footer.php which are now centralized and easier to manage from within one file.
Why the change?
Our development team came up with a more efficient way to load repetitive items such as
get_footer(), and our custom hooks. This is meant to do several things:
- Reduce repeated calls to
- Provide a cleaner overall organization of code
- Get a much better grasp for the HTML template structure
How does this change affect me?
We have moved tags like html, head and body out of header.php and footer.php and put them in wrapper.php. Every template now automatically passes through wrapper.php.
get_footer()from all child theme files except wrapper.php
- If your child theme adds code to head or body tags, some will need to be moved to wrapper.php and some will need to move to filter in functions.php
You can download the latest development version of the theme your product works with (available from your customer dashboard) and test accordingly. We strongly recommend doing this sooner rather than later so your customers get a heads up once we roll out the update.
Will regular plugins still work?
Yes. We still use the standard WordPress functions like
wp_footer(), etc. The only change is where these elements now live.
Like this tutorial? Subscribe and get the latest tutorials delivered straight to your inbox or feed reader.