__( 'Header Menu','blogginglovetheme' ), 'footer-menu' => __( 'Footer Menu','blogginglovetheme' ) )); // Add featured image support add_theme_support('post-thumbnails'); //Add post format support add_theme_support('post-formats', array('aside', 'link', 'gallery')); } add_action('after_setup_theme', 'featured_image_box'); // Add Widget Locations function bl_widgetlocation() { register_sidebar( array( 'name' => 'Sidebar', 'id' => 'sidebar1', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' )); register_sidebar( array( 'name' => 'Footer Column 1', 'id' => 'footer1', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' )); register_sidebar( array( 'name' => 'Footer Column 2', 'id' => 'footer2', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' )); register_sidebar( array( 'name' => 'Footer Column 3', 'id' => 'footer3', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' )); } add_action('widgets_init', 'bl_widgetlocation'); add_theme_support('custom-background'); add_theme_support( 'html5', array( 'comment-list', 'comment-form', 'caption','gallery')); // Pagination function pagination_bar() { global $wp_query; $total_pages = $wp_query->max_num_pages; if ($total_pages > 1){ $current_page = max(1, get_query_var('paged')); echo paginate_links(array( 'base' => get_pagenum_link(1) . '%_%', 'format' => '/page/%#%', 'current' => $current_page, 'total' => $total_pages, )); } } // Output Customize CSS function bl_blogginglove_customize_css() { ?> 1 ){ $comments = $comments_num . __(' Comments','blogginglovetheme'); }else{ $comments = __('Leave a comment','blogginglovetheme'); } $comments = ''. $comments .''; }else{ $comments = __( 'Comments are closed','blogginglovetheme'); } return $comments; } // Header Image add_theme_support('custom-header'); add_theme_support( 'automatic-feed-links' ); function wpdocs_theme_add_editor_styles() { add_editor_style( 'custom-editor-style.css' ); } add_action( 'admin_init', 'wpdocs_theme_add_editor_styles' ); add_theme_support( 'title-tag' ); if ( ! isset( $content_width ) ) $content_width = 1200; // Comments function bl_blogginglove_enqueue_comments_reply() { if( get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } } add_action( 'comment_form_before', 'bl_blogginglove_enqueue_comments_reply' );