Created
July 22, 2014 19:19
-
-
Save cjkoepke/95077717d6668ced09a7 to your computer and use it in GitHub Desktop.
Order Widgets
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
// Adding a 1 to the end of the action sets the priority of the function. | |
add_action( 'genesis_before_content_sidebar_wrap', 'ck_home_first_widget', 1 ); | |
function ck_home_first_widget() { | |
genesis_widget_area( 'home-featured-post', array( | |
'before' => '<section>', | |
'after' => '</section>', | |
) ); | |
} | |
// Add a 2 to the end to set the priority to second. | |
add_action( 'genesis_before_content_sidebar_wrap', 'ck_home_second_widget', 2 ); | |
function ck_home_second_widget() { | |
genesis_widget_area( 'home-featured-post', array( | |
'before' => '<section>', | |
'after' => '</section>', | |
) ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment