This plugin defines and implements any .png image named `custom-head1000.png` first placed within your Twenty Twelve Child Theme's `images` folde
Author: | paulwp (code) & leejosepho (plugin) (profile at wordpress.org) |
WordPress version required: | 3.5 |
WordPress version tested: | |
Plugin version: | 0.1 |
Added to WordPress repository: | 18-01-2013 |
Last updated: | 18-01-2013
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
Rating, %: | 100 |
Rated by: | 1 |
Plugin URI: | |
Total downloads: | 199 |
Click to start download |
After you have placed any header image named custom-head1000.png
within an images
folder inside your Twenty Twelve Child Theme, simply activate this plugin and your new "Custom 2012 Header" will appear.
Note: There is a custom-head1000.png
image inside an images
folder inside this plugin's folder, and you can copy that custom-head1000.png
image into your Twenty Twelve Child Theme's images
folder to get started here, if you wish.
Here are this plugin's inital settings for the custom-head1000.png
image it expects to find within images
inside your Twenty Twelve Child Theme:
// Set height and width, with a maximum value for the width.
'height' => 250, // enter your own desired height here
'width' => 1000, // enter your own desired width here
'max-width' => 2000,
Here are some additional settings you can change by editing this plugin's custom-2012-header.php
file:
// Change color for site name and tagline
// change custom-head1000.png
to any other file name as long as you do the same in your Child Theme's images
folder.
Note: Any future update to this plugin will remind you to make a backup of your edited settings prior to accepting the plugin update. Or, if you wish, just change this plugin's name and you will never be prompted for an update.
If you might want to know beforehand, here is how this plugin works:
// action: first remove a default action from Twenty Twelve
remove_action( 'after_setup_theme', 'twentytwelve_custom_header_setup' );
// action: next define new $args
function nny_custom_header_setup() {
// (and more in that area of code) // action: now add it the same way Twenty Twelve does add_action( 'after_setup_theme', 'nny_custom_header_setup' );`
And for that, many thanks to coder paulwp
in the wordpress.org
forums:
http://wordpress.org/support/topic/setting-default-header-image-in-child-theme?replies=12