Created
July 14, 2017 05:51
-
-
Save manhleo93/cfffe6b51f726666d719e9eb9ce21c8d 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
// Register Horizontal Opt-in widget area | |
genesis_register_widget_area( | |
array( | |
'id' => 'horizontal-opt-in', | |
'name' => __( 'Horizontal Opt-in', 'my-theme-text-domain' ), | |
'description' => __( 'This is the horizontal opt-in section.', 'my-theme-text-domain' ), | |
) | |
); | |
// Display Horizontal Opt-in widget area below header | |
add_action( 'genesis_after_header', 'sk_horizontal_optin' ); | |
function sk_horizontal_optin() { | |
genesis_widget_area( 'horizontal-opt-in', array( | |
'before' => '<div class="horizontal-opt-in widget-area"><div class="wrap">', | |
'after' => '</div></div>', | |
) ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment