Created
September 10, 2017 18:15
-
-
Save topleague/5079adf9d880a6c984c445da6b537cc5 to your computer and use it in GitHub Desktop.
Register New Widgets for Magazine Grid Template
This file contains hidden or 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
//* Add the following code to your functions.php in Genesis Starter Theme | |
// Register Featured Top widget areas | |
genesis_register_widget_area( | |
array( | |
'id' => "featured-top", | |
'name' => __( "Featued Top", 'my-theme-text-domain' ), | |
'description' => __( "This is the Featued Top section.", 'my-theme-text-domain' ), | |
) | |
); | |
// Register Featured Story widget areas | |
genesis_register_widget_area( | |
array( | |
'id' => "featured-story", | |
'name' => __( "Featued Story", 'my-theme-text-domain' ), | |
'description' => __( "This is the Featued Story section.", 'my-theme-text-domain' ), | |
) | |
); | |
// Register Featured Stories widget areas | |
genesis_register_widget_area( | |
array( | |
'id' => "featured-stories", | |
'name' => __( "Featued Stories", 'my-theme-text-domain' ), | |
'description' => __( "This is the Featued Stories section.", 'my-theme-text-domain' ), | |
) | |
); | |
// Register Featured Posts widget areas | |
genesis_register_widget_area( | |
array( | |
'id' => "featured-posts", | |
'name' => __( "Featued Posts", 'my-theme-text-domain' ), | |
'description' => __( "This is the Featued Posts section.", 'my-theme-text-domain' ), | |
) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment