Skip to content

Instantly share code, notes, and snippets.

@topleague
Created September 10, 2017 18:15
Show Gist options
  • Save topleague/5079adf9d880a6c984c445da6b537cc5 to your computer and use it in GitHub Desktop.
Save topleague/5079adf9d880a6c984c445da6b537cc5 to your computer and use it in GitHub Desktop.
Register New Widgets for Magazine Grid Template
//* 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