for posts and comments. add_theme_support( 'automatic-feed-links' ); // Enable support for Post Thumbnails, and declare two sizes. add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size(); add_image_size( 'customizable-full-width', 1038, 576, true ); add_image_size( 'customizable-blog-width', 730, 428, true ); // This theme uses wp_nav_menu() in two locations. register_nav_menus( array( 'primary' => __( 'Top primary menu', 'customizable' ), 'secondary' => __( 'Secondary menu in footer', 'customizable' ), ) ); /* * Switch default core markup for search form, comment form, and comments * to output valid HTML5. */ add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', ) ); /* * Enable support for Post Formats. * See http://codex.wordpress.org/Post_Formats */ add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'audio', 'quote', 'link', 'gallery', ) ); // This theme allows users to set a custom background. add_theme_support( 'custom-background', apply_filters( 'customizable_custom_background_args', array( 'default-color' => 'f5f5f5', ) ) ); // Add support for featured content. add_theme_support( 'featured-content', array( 'featured_content_filter' => 'customizable_get_featured_posts', 'max_posts' => 6, ) ); // This theme uses its own gallery styles. add_filter( 'use_default_gallery_style', '__return_false' ); } endif; // customizable_setup add_action( 'after_setup_theme', 'customizable_setup' ); // Theme option require_once('theme-options/fasterthemes.php'); // Custome social widget require_once('inc/social-custom-widget.php'); // Implement Custom Header features. require get_template_directory() . '/inc/custom-header.php'; add_action('wp_enqueue_scripts','customizable_load_scripts'); function customizable_load_scripts(){ wp_enqueue_style( 'bootstrap', get_template_directory_uri() . '/css/bootstrap.min.css', array(), '3.0.2' ); wp_enqueue_style( 'fontawesome', get_template_directory_uri() . '/css/font-awesome.min.css', array(), '3.0.2' ); wp_enqueue_style( 'customizable-style', get_stylesheet_uri(),array('bootstrap')); wp_enqueue_style('owl-carousel-css',get_template_directory_uri().'/css/owl.carousel.css',array(),'',''); wp_enqueue_script( 'owl-carousel-script', get_template_directory_uri() . '/js/owl.carousel.js', array( 'jquery' ), '20131209', true ); wp_enqueue_script('sliderjs',get_template_directory_uri().'/js/responsiveslides.min.js',array('jquery')); wp_enqueue_script('customizable-default-js', get_template_directory_uri() . '/js/default.js', array('jquery'), '20131209', true); if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); } //Theme Title function customizable_wp_title( $title, $sep ) { global $paged, $page; if ( is_feed() ) { return $title; } // Add the site name. $title .= get_bloginfo( 'name', 'display' ); // Add the site description for the home/front page. $customizable_site_description = get_bloginfo( 'description', 'display' ); if ( $customizable_site_description && ( is_home() || is_front_page() ) ) { $title = "$title $sep $customizable_site_description"; } // Add a page number if necessary. if ( $paged >= 2 || $page >= 2 ) { $title = "$title $sep " . sprintf( __( 'Page %s', 'customizable' ), max( $paged, $page ) ); } return $title; } add_filter( 'wp_title', 'customizable_wp_title', 10, 2 ); function customizable_font_url() { $customizable_font_url = ''; /* * Translators: If there are characters in your language that are not supported * by Lato, translate this to 'off'. Do not translate into your own language. */ if ( 'off' !== _x( 'on', 'Lato font: on or off', 'customizable' ) ) { $customizable_font_url = add_query_arg( 'family', urlencode( 'Lato:300,400,700,900,300italic,400italic,700italic' ), "//fonts.googleapis.com/css" ); } return $customizable_font_url; } /** * Register customizable widget areas. * */ function customizable_widgets_init() { register_sidebar( array( 'name' => __( 'Content Sidebar', 'customizable' ), 'id' => 'content-sidebar', 'description' => __( 'Additional sidebar that appears on the right.', 'customizable' ), 'before_widget' => '
', 'before_title' => '', '' ); ?>