Title: [Plugin: Dynamic Headers] Code Enhancement
Last modified: August 20, 2016

---

# [Plugin: Dynamic Headers] Code Enhancement

 *  [wpcrank_phil](https://wordpress.org/support/users/wpcsphil/)
 * (@wpcsphil)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-dynamic-headers-code-enhancement/)
 * Changing line 222 to the following will show default banner instead of big red
   X area in admin center…
 *     ```
       if ($media_file != "") {
       	echo '<img src="'.$dhnd_image_url_base.$media_file.'" style="width:30%;margin-top:10px;" />';
       } else {
       	echo '<img src="'.$dhnd_image_url_base.get_option('dhnd_default').'" style="width:30%;margin-top:10px;" />';
       }
       ```
   
 * [http://wordpress.org/extend/plugins/dynamic-headers/](http://wordpress.org/extend/plugins/dynamic-headers/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [wpcrank_phil](https://wordpress.org/support/users/wpcsphil/)
 * (@wpcsphil)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-dynamic-headers-code-enhancement/#post-2863816)
 * Also, if you want the default blog header image to show up on all blog pages (
   category, single, archive) you can use something like this instead of the standard
   call…
 *     ```
       <?php if(function_exists('show_media_header')){
       	if ( is_single() || is_category() || is_archive() ) {
       		echo '<img src="'.get_bloginfo('url').'/wp-content/header-images/'.get_option('dhnd_homepage').'" />';
       	} else {
       		show_media_header();
       	}
       } ?>
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Dynamic Headers] Code Enhancement’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/dynamic-headers.svg)
 * [Dynamic Headers](https://wordpress.org/plugins/dynamic-headers/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/dynamic-headers/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/dynamic-headers/)
 * [Active Topics](https://wordpress.org/support/plugin/dynamic-headers/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dynamic-headers/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dynamic-headers/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [wpcrank_phil](https://wordpress.org/support/users/wpcsphil/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-dynamic-headers-code-enhancement/#post-2863816)
 * Status: not resolved