Skip to content

Instantly share code, notes, and snippets.

@mkormendy
Created January 20, 2016 16:03
Show Gist options
  • Save mkormendy/8cb7a92aa6469772b44a to your computer and use it in GitHub Desktop.
Save mkormendy/8cb7a92aa6469772b44a to your computer and use it in GitHub Desktop.
Sidebar Widgets
<?php
/**
* Register our sidebars and widgetized areas.
*
*/
function arphabet_widgets_init() {
register_sidebar( array(
'name' => 'Home right sidebar',
'id' => 'home_right_1',
'before_widget' => '<div>',
'after_widget' => '</div>',
'before_title' => '<h2 class="rounded">',
'after_title' => '</h2>',
) );
}
add_action( 'widgets_init', 'arphabet_widgets_init' );
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment