Skip to content

Instantly share code, notes, and snippets.

@reasonstousegenesis
Created November 4, 2015 02:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reasonstousegenesis/5b40b2c1e43617257291 to your computer and use it in GitHub Desktop.
Save reasonstousegenesis/5b40b2c1e43617257291 to your computer and use it in GitHub Desktop.
Rewrite the site header to include an image
<?php
// Paste the code BELOW this line into your child theme functions.
/**
* Rewrite the site header to include an image
*
* @author Reasons to Use Genesis
* @link http://reasonstousegenesis.com/rewrite-header/
*/
remove_action( 'genesis_header', 'genesis_do_header' );
add_action( 'genesis_header', 'rtug_header_image' );
function rtug_header_image() {
// replace with the URL of your image
echo '<img src="http://yoursite.com/wp-content/themes/yourtheme/images/header.png" alt="Welcome to My Site">';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment