'', 'random-default' => false, 'width' => 0, 'height' => 0, 'flex-height' => false, 'flex-width' => false, 'default-text-color' => '', 'header-text' => true, 'uploads' => true, 'wp-head-callback' => '', 'admin-head-callback' => '', 'admin-preview-callback' => '', ); add_theme_support( 'custom-header', $defaults ); $defaults2 = array( 'default-color' => '', 'default-image' => '', 'default-repeat' => '', 'default-position-x' => '', 'default-attachment' => '', 'wp-head-callback' => '_custom_background_cb', 'admin-head-callback' => '', 'admin-preview-callback' => '' ); add_theme_support( 'custom-background', $defaults2); ?> add_setting( 'themeslug_logo' ,array('sanitize_callback' => '__return_false')); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'themeslug_logo', array( 'label' => __( 'Logo', 'themeslug' ), 'section' => 'themeslug_logo_section', 'settings' => 'themeslug_logo', ) ) ); } add_action('customize_register','themeslug_theme_customizer'); function my_new_sidebar(){ register_sidebar(array( 'id'=>'sidebar', 'name'=>__('SideBar'), 'before_widget' => '', 'after_widget' => '', 'before_title' => '

', 'after_title' => '

', )); } add_action('widgets_init','my_new_sidebar'); function register_my_menu(){ register_nav_menus(array( 'header-menu' =>_('Header Menu'), 'footer-menu' =>_('Footer Menu') )); } add_action('init','register_my_menu'); function mytheme_comment($comment,$args,$depth){ $GLOBALS['comment'] =$comment; extract($args, EXTR_SKIP); ?>

$add_below, 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>

'
' . ' ' . '
', 'email' => '
' . '
', 'url' => '
' . '
' ); return $fields; } add_filter( 'comment_form_defaults', 'bootstrap3_comment_form' ); function bootstrap3_comment_form( $args ) { $args['comment_field'] = '
'; $args['class_submit'] = 'btn btn-default'; // since WP 4.1 return $args; } //commet replay option function newborn_enqueue_comments_reply() { if( get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } } add_action( 'comment_form_before', 'newborn_enqueue_comments_reply' ); // this will add post thumbnail option in wordpress post add_theme_support( 'post-thumbnails' ); //footer widgetzie /* Add this code to functions.php file in your theme */ register_sidebar(array( 'name' => 'Footer Widget Left', 'id' => 'footer-1', 'description' => 'First footer widget area', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', )); register_sidebar(array( 'name' => 'Footer Widget Middle', 'id' => 'footer-2', 'description' => 'Second footer widget area', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', )); register_sidebar(array( 'name' => 'Footer Widget Right', 'id' => 'footer-3', 'description' => 'Third footer widget area', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', )); function custom_excerpt_length( $length ) { return 20; } add_filter( 'excerpt_length', 'custom_excerpt_length', 999 ); require( get_template_directory() .'/include/slider/slider.php'); require get_template_directory().'/include/customizer/customizer.php'; require get_template_directory().'/include/feature/feature.php'; ?>