1200, 'height' => 280, 'flex-height' => true, 'wp-head-callback' => 'childcare_header_style', ) ) ); add_theme_support( 'custom-logo', array( 'height' => 240, 'width' => 240, 'flex-height' => true, ) ); } if ( ! function_exists( 'childcare_header_style' ) ) : function childcare_header_style() { if ( display_header_text() ) { return; } ?> '
' . __( 'Pages:', 'childcare' ), 'after' => '
' ) ); the_posts_pagination( array( 'prev_text' => __( 'Previous page', 'childcare' ), 'next_text' => __( 'Next page', 'childcare' ), 'before_page_number' => '
' . __( 'Page', 'childcare' ) . '
', ) ); function custom_excerpt_length( $length ) { return 40; } add_filter( 'excerpt_length', 'custom_excerpt_length', 999 ); require('template-tags.php'); function my_function_admin_bar(){ return false; } add_filter( 'show_admin_bar' , 'my_function_admin_bar'); function childcare_scripts() { $childcare_option=childcare_theme_default_data(); $childcare_custom_css = wp_parse_args( get_option( 'childcare_option', array() ), $childcare_option ); $custom_css= $childcare_custom_css['childcare_custom_css']; wp_enqueue_style('childcare-style', get_stylesheet_uri()); wp_add_inline_style( 'childcare-style', $custom_css ); wp_enqueue_style('childcare-bootstrap', CHILDCARE_TEMPLATE_DIR_URI .'/css/bootstrap.css', array(), 'v3.3.5'); wp_enqueue_style('childcare-default', CHILDCARE_TEMPLATE_DIR_URI .'/css/default.css', array(), null); wp_enqueue_style('childcare-media-responsive', CHILDCARE_TEMPLATE_DIR_URI .'/css/media-responsive.css', array(), null); wp_enqueue_style('childcare-animate', CHILDCARE_TEMPLATE_DIR_URI .'/css/animate.css', array(), '3.5.1'); wp_enqueue_style('childcare-animations', CHILDCARE_TEMPLATE_DIR_URI .'/css/animations.css', array(), 'v1.0'); wp_enqueue_style('childcare-font', CHILDCARE_TEMPLATE_DIR_URI .'/css/fonts/font.css', array(), null); wp_enqueue_style('childcare-ms-staff-style', CHILDCARE_TEMPLATE_DIR_URI .'/css/ms-staff-style.css', array(), null); wp_enqueue_style('font-awesome', CHILDCARE_TEMPLATE_DIR_URI .'/css/font-awesome-4.4.0/css/font-awesome.css', array(), '4.4.0'); wp_enqueue_style('childcare-google-fonts-style', '//fonts.googleapis.com/css?family=PathwayGothicOne:400,700|Oswald:300,400,700|Fira Sans:300,400,500,700,300Italic|Lobster:400|PT Sans Caption:400,700|Roboto:100,300,400|Arbutus Slab:400'); wp_enqueue_script('childcare-bootstrap', CHILDCARE_TEMPLATE_DIR_URI .'/js/bootstrap.js', array(), 'v3.3.5', true); wp_enqueue_script('childcare-custom', CHILDCARE_TEMPLATE_DIR_URI .'/js/custom.js', array(), null, true); wp_enqueue_script('childcare-animations', CHILDCARE_TEMPLATE_DIR_URI .'/js/animations.js', array('jquery'), 'v1.0', true); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } } add_action('wp_enqueue_scripts', 'childcare_scripts'); function childcare_render_homepage() { get_template_part('home','slider'); } add_action( 'childcare_banner', 'childcare_render_homepage' ); ?>