Skip to content

Instantly share code, notes, and snippets.

@ejdanderson
Last active August 29, 2015 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ejdanderson/e711b4af567134c07b3c to your computer and use it in GitHub Desktop.
Save ejdanderson/e711b4af567134c07b3c to your computer and use it in GitHub Desktop.
Annotum Custom Header Size
<?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