Skip to content

Instantly share code, notes, and snippets.

@DavidV-WPCK
Created April 26, 2014 17:44
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 DavidV-WPCK/11326370 to your computer and use it in GitHub Desktop.
Save DavidV-WPCK/11326370 to your computer and use it in GitHub Desktop.
You can create a custom a custom header banner and footer banner which will show on your theme option pages in admin. You must be running the ThemeBlvd WP JumpStart framework. Place this in your "functions.php" file. Recommended image size for header and footer is 780px wide, and height is up to you. To control exactly what theme admin module pa…
<?php
/*--------------------------------------------------------*/
/* Custom Theme Options Panel Banners for header/footer
/*--------------------------------------------------------*/
// Custom header banner
function wpckpro_redoubt_admin_module_header() {
$img_path = get_stylesheet_directory_uri() . '/assets/images/admin-top-banner.png'; // Modify this path and image name as needed.
echo '<img src="'.$img_path.'" />';
}
add_action( 'themeblvd_admin_module_header', 'wpckpro_redoubt_admin_module_header' );
// Custom footer banner
function wpckpro_redoubt_admin_module_footer() {
$img_path = get_stylesheet_directory_uri() . '/assets/images/admin-footer-banner.png'; // Modify this path and image name as needed.
echo '<img src="'.$img_path.'" />';
}
add_action( 'themeblvd_admin_module_footer', 'wpckpro_redoubt_admin_module_footer' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment