Last active
August 29, 2015 14:26
-
-
Save chillybin/38444bbfa725f029fceb to your computer and use it in GitHub Desktop.
Advertisement after Entry Title, before Entry Content
This file contains hidden or 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 | |
add_action( 'genesis_entry_header', 'cb_advertisement_before_content', 20 ); | |
function cb_advertisement_before_content() { ?> | |
<div class="entry-advertisement alignleft"> | |
<img src="https://placeholdit.imgix.net/~text?txtsize=33&txt=300×250&w=300&h=250" alt="Please replace me" width="300" height="250" /> | |
</div> | |
<?php } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment