'ffffff', ); add_theme_support( 'custom-background', $args ); // // backwards compatibility global $wp_version; if ( version_compare( $wp_version, '3.4', '>=' ) ) : add_theme_support( 'custom-background' ); else : add_custom_background( $args ); endif; // function blogstrap_theme_customizer( $wp_customize ) { $wp_customize->add_section( 'blogstrap_settings_section' , array( 'title' => __( 'Blogstrap Settings', 'blogstrap' ), 'priority' => 1, 'description' => 'Customize the look of your blogstrap theme', ) ); // avatar upload $wp_customize->add_setting( 'blogstrap_logo' ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'blogstrap_logo', array( 'label' => __( 'Avatar', 'blogstrap' ), 'section' => 'blogstrap_settings_section', 'settings' => 'blogstrap_logo', ) ) ); //Short Bio $wp_customize->add_setting( 'bio' ); $wp_customize->add_control( 'bio', array( 'label' => 'Short Bio', 'section' => 'blogstrap_settings_section', 'type' => 'text', ) ); //twitter $wp_customize->add_setting( 'twitter_handle' ); $wp_customize->add_control( 'twitter_handle', array( 'label' => 'Twitter Name', 'section' => 'blogstrap_settings_section', 'type' => 'text', ) ); //linkedin $wp_customize->add_setting( 'linkedin_handle' ); $wp_customize->add_control( 'linkedin_handle', array( 'label' => 'Linkedin URL', 'section' => 'blogstrap_settings_section', 'type' => 'text', ) ); //Facebook $wp_customize->add_setting( 'facebook' ); $wp_customize->add_control( 'facebook', array( 'label' => 'Facebook URL', 'section' => 'blogstrap_settings_section', 'type' => 'text', ) ); // website $wp_customize->add_setting( 'website' ); $wp_customize->add_control( 'website', array( 'label' => 'Personal Website', 'section' => 'blogstrap_settings_section', 'type' => 'text', ) ); // copyright $wp_customize->add_setting( 'copyright' ); $wp_customize->add_control( 'copyright', array( 'label' => 'Copyright', 'section' => 'blogstrap_settings_section', 'type' => 'text', ) ); // hide twitter $wp_customize->add_setting( 'hide_twitter' ); $wp_customize->add_control( 'hide_twitter', array( 'type' => 'checkbox', 'label' => 'Hide Twitter', 'section' => 'blogstrap_settings_section', ) ); // hide facebook $wp_customize->add_setting( 'hide_facebook' ); $wp_customize->add_control( 'hide_facebook', array( 'type' => 'checkbox', 'label' => 'Hide Facebook', 'section' => 'blogstrap_settings_section', ) ); // hide linkedin $wp_customize->add_setting( 'hide_linkedin' ); $wp_customize->add_control( 'hide_linkedin', array( 'type' => 'checkbox', 'label' => 'Hide Linkedin', 'section' => 'blogstrap_settings_section', ) ); // hide website $wp_customize->add_setting( 'hide_website' ); $wp_customize->add_control( 'hide_website', array( 'type' => 'checkbox', 'label' => 'Hide Website', 'section' => 'blogstrap_settings_section', ) ); // hide copyright $wp_customize->add_setting( 'hide_copyright' ); $wp_customize->add_control( 'hide_copyright', array( 'type' => 'checkbox', 'label' => 'Hide Copyright', 'section' => 'blogstrap_settings_section', ) ); // customizer end } add_action('customize_register', 'blogstrap_theme_customizer'); // widgetize if (function_exists('register_sidebar')) { register_sidebar(array( 'name' => 'Widgetized Area', 'id' => 'widgetized-area', 'description' => 'This is a widgetized area.', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' )); } // Changing excerpt length function new_excerpt_length($length) { return 200; } add_filter('excerpt_length', 'new_excerpt_length'); // Changing excerpt more function new_excerpt_more($more) { return '...'; } add_filter('excerpt_more', 'new_excerpt_more'); // feed links add_theme_support( 'automatic-feed-links' ); // thumbnail support add_theme_support( 'post-thumbnails' ); add_theme_support( 'post-thumbnails', array( 'post' ) ); // Posts only add_theme_support( 'post-thumbnails', array( 'page' ) ); // Pages only add_theme_support( 'post-thumbnails', array( 'post', 'movie' ) ); // Posts and Movies //remove admin bar margin function my_filter_head() { remove_action('wp_head', '_admin_bar_bump_cb'); } add_action('get_header', 'my_filter_head'); //bootstrap menu add_action( 'after_setup_theme', 'bootstrap_setup' ); if ( ! function_exists( 'bootstrap_setup' ) ): function bootstrap_setup(){ add_action( 'init', 'register_menu' ); function register_menu(){ register_nav_menu( 'top-bar', 'Bootstrap Top Menu' ); } class Bootstrap_Walker_Nav_Menu extends Walker_Nav_Menu { function start_lvl( &$output, $depth ) { $indent = str_repeat( "\t", $depth ); $output .= "\n$indent