Last active
December 23, 2015 11:38
-
-
Save braddalton/6629292 to your computer and use it in GitHub Desktop.
Use is_home() if using a static front page in the reading settings and not the default.
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
/** | |
* @author Brad Dalton - WP Sites | |
* @example http://wpsites.net/web-design/code-snippets-for-adding-custom-functions/ | |
*/ | |
function image_before_blog() { | |
if(is_page_template(page_blog-php) ) | |
echo '<div class="custom-image">Add Your Images HTML Here</div>'; | |
}; | |
add_action('genesis_before_loop', 'image_before_blog'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment