While loitering over on the WordPress Support Forum, trying to answer a topic on resizing the headers “the penny dropped”, the twentyeleven_setup() function in the parent theme is pluggable, so we can now do so many changes in a single function.
Our Child Theme
In our child theme we wanted to enhance it by using the header functions for a logo, so the admin could choose or upload a logo, so we only wanted a 120px by 120px logo image in the header.
The theme in the image is downloadable from another posts so we are not going to go into the code here, do watch the pluggable functions video ,download the theme and play with the code.
Best Viewed HD and Full Screen to read the code!
By copying the themes twenty eleven setup function from twenty eleven to the child theme we could change so much more without needing to remove filters and actions in our child theme.
We could use the Header image as a logo at 120px by 120px, removed the parents headers, removed the post classes, removed some of the image sizes, added new image sizes, and uploaded our own headers (logos) folder.
Child Theme Video Development Playlist
We do require your feedback to improve our themes and tutorials, please leave your comments good or bad.
Code disclaimer information
If this document contains programming examples, www.DigitalRaindrops.net grants you a nonexclusive copyright license to use all programming code from which you can generate similar functions tailored to your own specific needs.
All sample code is provided by http://DigitalRaindrops.net for learning illustrative purposes only.
These examples have not been thoroughly tested under all conditions. www.DigitalRaindrops.net, therefore, cannot guarantee or imply reliability, serviceability, or function of these examples.
All programs contained herein are provided to you “AS IS” without any warranties of any kind. The implied warranties of non-infringement, merchantability and fitness for a particular purpose are expressly disclaimed.
Registration and Membership is no longer required for downloading files or interacting with Digital Raindrops, posting a comment or topic in the forum does use Captcha to reduce spammers.
This website is a tool to support and promote WordPress and Artisteer theme development, please support, share and give credit for any benefits you gain from the tutorials on this website.