-
-
Save braddalton/4de1ebae905d400984b5 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' => 'home-featured', | |
'name' => __( 'Home Featured', 'eleven40' ), | |
'description' => __( 'This is the home featured section.', 'eleven40' ), | |
) ); | |
/** Add the home featured section */ | |
add_action( 'genesis_before_loop', 'eleven40_home_featured' ); | |
function eleven40_home_featured() { | |
if ( is_front_page() && !get_query_var( 'paged' ) >= 2 ) { | |
genesis_widget_area( 'home-featured', array( | |
'before' => '<div class="home-featured widget-area">', | |
'after' => '</div>' | |
) ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment