Advertisement
srikat

Untitled

Jan 23rd, 2014
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.52 KB | None | 0 0
  1. genesis_register_sidebar( array(
  2.     'id'          => 'pages-top',
  3.     'name'        => __( 'Pages Top', 'agency' ),
  4.     'description' => __( 'This is the top section on static Pages below nav.', 'agency' ),
  5. ) );
  6.  
  7. add_action( 'genesis_after_header', 'sk_after_after_inner' );
  8. function sk_after_after_inner() {
  9.  
  10.     if ( is_singular('page' ) || is_singular('post' ) ) {
  11.         genesis_widget_area( 'pages-top', array(
  12.             'before' => '<div id="pages-top" class="widget-area"><div class="wrap">',
  13.             'after'  => '</div></div>',
  14.         ) );
  15.     }
  16.  
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement