Skip to content

Instantly share code, notes, and snippets.

@ZellSnippets
Created September 14, 2013 15:33
Show Gist options
  • Save ZellSnippets/6562964 to your computer and use it in GitHub Desktop.
Save ZellSnippets/6562964 to your computer and use it in GitHub Desktop.
PHP: Genesis add stuff after post
// Add signup incentives after every post
add_action( 'genesis_before_comments', 'zell_post_subscribe_box' );
function zell_post_subscribe_box() {
if ( is_single() ) {
echo '<div class="feature-box">';
echo do_shortcode( '[contact-form-7 id="341" title="Mail Chimp Signup"]' );
// echo do_shortcode( '[contact-form-7 id="1175" title="Mail Chimp Signup Form WK DRAFT"]' );
echo '</div><!-- end .feature-box -->';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment