Skip to content

Instantly share code, notes, and snippets.

@SiGaCode
Created July 30, 2016 21:38
Show Gist options
  • Select an option

  • Save SiGaCode/f10ea5adda01964f62259dcdcc0cdc17 to your computer and use it in GitHub Desktop.

Select an option

Save SiGaCode/f10ea5adda01964f62259dcdcc0cdc17 to your computer and use it in GitHub Desktop.
Widget area before content for a slider in Lifestyle Pro
genesis_register_sidebar( array(
'id' => 'slider-widget',
'name' => __( 'Slider-Widget', 'lifestyle' ),
'description' => __( 'This is the widget area for the slider.', 'lifestyle' ),
) );
//* Hook the widget to before content
add_action( 'genesis_before_content', 'my-slider', 10 );
function my-slider() {
genesis_widget_area( 'slider-widget', array(
'before' => '<div class="myslider">',
'after' => '</div>',
) );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment