Last active
August 29, 2015 14:09
-
-
Save ejdanderson/e711b4af567134c07b3c to your computer and use it in GitHub Desktop.
Annotum Custom Header Size
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Add the following function to a child theme or plugin: | |
// Class exists check in case adding to a plugin and themes are swapped. | |
if ( class_exists ( 'Anno_Keeper' ) ) { | |
function anno_custom_header_size() { | |
Anno_Keeper::keep( 'header_image', new Anno_Header_Image( 'header', array ( 1265, 110 ) ) ); | |
} | |
// Priority 10 to come in after the annotum's initial template initialization. | |
add_action( 'after_setup_theme', 'anno_custom_header_size', 10 ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment