Skip to content

Instantly share code, notes, and snippets.

@ethangardner
Created October 11, 2011 01:35
Show Gist options
  • Save ethangardner/1277054 to your computer and use it in GitHub Desktop.
Save ethangardner/1277054 to your computer and use it in GitHub Desktop.
Create the structure for jQuery UI Accordion
// This goes in the functions.php file between the php tags
// to make wordpress render the markup needed for a jQuery UI
// accordion widget area
register_sidebar(array(
'name' => 'Accordion Widget Area',
'id' => 'accordion-widgets',
'description' => 'jQuery UI accordion enabled widget area',
'before_widget' => '',
'after_widget' => '',
'before_title' => '<h3><a href="#">',
'after_title' => '</a></h3>',
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment