Last active
December 17, 2015 10:39
-
-
Save braddalton/5596908 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
genesis_register_sidebar( array( | |
'id' => 'after-title', | |
'name' => __( 'Contact Page Widget', 'wpsites' ), | |
'description' => __( 'Add Opt In Form After Contact Page Title', 'wpsites' ), | |
) ); | |
/** | |
* @author Brad Dalton - WP Sites | |
* @link http:/.wpsites.net/ | |
*/ | |
add_action( 'genesis_after_page_title', 'wpsites_contact_page_widget', 5 ); | |
function wpsites_contact_page_widget() { | |
if ( is_page('007') ) { | |
echo '<div class="after-title">'; | |
dynamic_sidebar( 'after-title' ); | |
echo '</div><!-- end .after-title -->'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment