diff --git a/functions.php b/functions.php index d630d11..52f6cf8 100755 --- a/functions.php +++ b/functions.php @@ -79,16 +79,9 @@ function cs_widgets_init() { /** * Enqueue scripts and styles. */ -function cs_scripts() { - - // Without these random enqueue styles, the theme styles don't load for some reason. ???????????? - wp_enqueue_style( 'xxxx',get_template_directory_uri() . '/aaaa.css' ); - wp_enqueue_style( 'bbbb', get_stylesheet_uri(),array('xxxx') ); - - /* +function cs_scripts() { wp_enqueue_style( 'cs-bootstrap-css',get_template_directory_uri() . '/bootstrap/css/bootstrap.min.css' ); - wp_enqueue_style( 'cs-style', get_stylesheet_uri(),array('cs-bootstrap-css') ); - */ + wp_enqueue_style( 'cs-style', get_stylesheet_uri(), array('cs-bootstrap-css') ); wp_enqueue_script( 'cs-bootstrap-js', get_template_directory_uri() . '/bootstrap/js/bootstrap.min.js', array( 'jquery' )); wp_enqueue_script( 'cs-respond-js', get_template_directory_uri() . '/bootstrap/js/respond.js', array( 'jquery' )); diff --git a/inc/reg-sidebars.php b/inc/reg-sidebars.php index cc080b0..639182a 100644 --- a/inc/reg-sidebars.php +++ b/inc/reg-sidebars.php @@ -81,4 +81,21 @@ function mf_remove_extra( $sidebars_widgets ){ return $sidebars_widgets; } add_filter( 'sidebars_widgets', 'mf_remove_extra' ); + +function custom_searchform($form){ + global $search_counter; + if( !$search_counter ){ + $search_counter = 0; + } + $search_counter++; + + $form = '
'; + + return $form; +} +add_filter('get_search_form', 'custom_searchform'); ?> \ No newline at end of file diff --git a/searchform.php b/old-searchform.php similarity index 100% rename from searchform.php rename to old-searchform.php