DavidV-WPCK
4/26/2014 - 5:44 PM

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

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 pages the banners show on, see the gist titled "redoubt-options-panel-banners-visibility.php"

<?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' );