Add affiliate disclosure to top of posts
<?php if ( is_singular( 'post' ) ) { ?>
[ssbp]
<p><strong>Disclosure: </strong>This post may contain affiliate links. I receive a small commission at no cost to you when you make a purchase using my link.</p>
<?php } ?>
<?php if ( is_singular( 'post' ) ) {
echo '<p><strong>Disclosure: </strong>This post may contain affiliate links. I receive a small commission at no cost to you when you make a purchase using my link.</p>';
} ?>
<?php // do not include this line
add_action( 'genesis_entry_content', 'oc_snippet_do_disclosure', 1 );
function oc_snippet_do_disclosure() {
if ( is_singular( 'post' ) ) {
echo '<p><strong>Disclosure: </strong>This post may contain affiliate links. I receive a small commission at no cost to you when you make a purchase using my link.</p>';
}
}