Skip to content

Instantly share code, notes, and snippets.

@ChrisCree
Created February 8, 2014 02:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ChrisCree/8875646 to your computer and use it in GitHub Desktop.
Save ChrisCree/8875646 to your computer and use it in GitHub Desktop.
Example of a page template for the Genesis theme framework that adds a widget area after the header.
</php
/*
*
* Template Name: Rotator 2
*
*/
add_action( 'genesis_after_header', 'wsm_add_rotator2' );
function wsm_add_rotator2() {
genesis_widget_area( 'rotator2', array( 'before' => '<div class="rotator2 widget-area">', 'after' => '</div>' ) );
}
genesis();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment