Created
July 30, 2016 21:38
-
-
Save SiGaCode/f10ea5adda01964f62259dcdcc0cdc17 to your computer and use it in GitHub Desktop.
Widget area before content for a slider in Lifestyle Pro
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
| 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