Last active
August 29, 2015 13:57
-
-
Save chrisegg/9849284 to your computer and use it in GitHub Desktop.
This file contains 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 | |
//* 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