'ffffff') ); add_editor_style( 'editor-style.css' ); } endif; add_action( 'after_setup_theme', 'bootBiz_wp_setup' ); function bootBiz_wp_scripts() { // CSS(header) wp_enqueue_style( 'bootstrap.min.css', get_stylesheet_directory_uri(). '/css/bootstrap.min.css', '', '3.3.5' ); wp_enqueue_style( 'bootstrap-glyphicons.css', get_stylesheet_directory_uri(). '/css/bootstrap-glyphicons.css', '', '3.0.0' ); wp_enqueue_style( 'bootBiz-basic-style', get_stylesheet_uri() ); // JavaScript(footer) wp_enqueue_script( 'bootstrap.min.js', get_stylesheet_directory_uri() .'/js/bootstrap.min.js', array('jquery'), '3.2.0', true ); wp_enqueue_script( 'jquery.matchHeight.js', get_stylesheet_directory_uri() .'/js/jquery.matchHeight.js', array('jquery'), '0.5.2', true ); wp_enqueue_script( 'bootbiz.js', get_template_directory_uri().'/js/bootbiz.js' ); wp_enqueue_script( 'respond.min.js', get_template_directory_uri().'/js/respond.min.js' ); wp_script_add_data( 'respond.min.js', 'conditional', 'lt IE 9' ); wp_enqueue_script( 'html5shiv.js',get_template_directory_uri().'/js/html5shiv.js'); wp_script_add_data( 'html5shiv.js', 'conditional', 'lt IE 9' ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } } add_action( 'wp_enqueue_scripts', 'bootBiz_wp_scripts' ); function bootBiz_wp_widgets_setup() { register_sidebar( array( 'name' => __( 'Blog Sidebar', 'bootbiz-for-wedding' ), 'description' => __( 'Appears on blog page sidebar', 'bootbiz-for-wedding' ), 'id' => 'sidebar', 'before_widget' => '
', ) ); register_sidebar( array( 'name' => __( 'Site Footer', 'bootbiz-for-wedding' ), 'description' => __( 'Appears on all page footer', 'bootbiz-for-wedding' ), 'id' => 'footer', 'before_widget' => '', ) ); // header image $args1 = array( 'flex-width' => true, 'width' => 1400, 'flex-height' => true, 'height' => 500, 'default-image' => get_template_directory_uri().'/images/header1.jpg', 'header-text-color'=>'#656464', 'header-text' => false, ); add_theme_support('custom-header',$args1); } add_action( 'widgets_init', 'bootBiz_wp_widgets_setup' ); /* * Sets up theme defaults and registers support for various WordPress features. * (for using bootstrap3) */ function bootBiz_comment_form_fields( $fields ) { $commenter = wp_get_current_commenter(); $req = get_option( 'require_name_email' ); $aria_req = ( $req ? " aria-required='true'" : '' ); $html5 = current_theme_supports( 'html5', 'comment-form' ) ? 1 : 0; $fields = array( 'author' => '', 'email' => '