Timeline for Adding an extra sidebar to your theme
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 30, 2015 at 3:02 | review | First posts | |||
Aug 30, 2015 at 3:41 | |||||
Aug 24, 2015 at 13:30 | history | edited | user3409468 | CC BY-SA 3.0 |
added 298 characters in body
|
Aug 24, 2015 at 13:28 | answer | added | kraftner | timeline score: 0 | |
Aug 24, 2015 at 13:26 | answer | added | Eric Holmes | timeline score: 1 | |
Aug 24, 2015 at 13:11 | history | edited | user3409468 | CC BY-SA 3.0 |
added 715 characters in body
|
Aug 24, 2015 at 11:06 | comment | added | kraftner | Please add that to the question and not as a comment. | |
Aug 24, 2015 at 10:10 | comment | added | user3409468 |
This is what I have done to register it: function mychild_widgets_init() { register_sidebar( array('name'=> __( 'Left sidebar', 'twentyfourteen' ), 'id'=> 'sidebar-left', 'description'=> __( 'Left sidebar.', 'twentyfourteen' ), 'before_widget' =>'<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h1 class="widget-title">', 'after_title' => '</h1>', ) ); } add_action( 'widgets_init', 'mychild_widgets_init' );
|
|
Aug 24, 2015 at 9:39 | comment | added | kraftner | Have you read this? You need to register the sidebar area first: codex.wordpress.org/Widgetizing_Themes | |
Aug 24, 2015 at 9:34 | history | asked | user3409468 | CC BY-SA 3.0 |