Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
//* Do NOT include the opening php tag
//* Add overlay widget to sales page background image
add_action( 'genesis_after_header', 'sales_image_overlay', 5 );
function sales_image_overlay() {
if ( has_post_thumbnail() ) {
echo '<div class="sales-cta"><div class="wrap">';
genesis_widget_area( 'sales-cta-overlay' );
echo '</div></div>';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment