'sidebar', 'name' => 'Primary Sidebar', 'before_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', )); } function hello_sexy_enqueue_scripts() { if ( ! is_admin() ) { // register html5_shim script wp_register_script('hello-sexy_html5_shim', get_template_directory_uri() . '/html5.js'); // enqueue html5_shim script wp_enqueue_script('hello-sexy_html5_shim'); } } // hack to add a class to the body tag when the sidebar is active function hellosexy_has_sidebar($classes) { if (is_active_sidebar('sidebar')) { // add 'class-name' to the $classes array $classes[] = 'has_sidebar'; } // return the $classes array return $classes; } add_filter('body_class','hellosexy_has_sidebar'); ?>