Created
November 4, 2015 02:31
-
-
Save reasonstousegenesis/5b40b2c1e43617257291 to your computer and use it in GitHub Desktop.
Rewrite the site header to include an image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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