Skip to content

Instantly share code, notes, and snippets.

@chillybin
Last active August 29, 2015 14:26
Show Gist options
  • Save chillybin/38444bbfa725f029fceb to your computer and use it in GitHub Desktop.
Save chillybin/38444bbfa725f029fceb to your computer and use it in GitHub Desktop.
Advertisement after Entry Title, before Entry Content
<?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