'Header Navigation', 'nav-footer' => 'Footer Navigation', ) ); } add_action( 'after_setup_theme', 'big_buttons_setup' ); function big_buttons_widgets() { register_sidebar( array( 'name'=>'Header Right', 'id'=>'header-right', 'description' => 'Right side of the header area', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '', 'after_title' => '' ) ); register_sidebar( array( 'name'=>'Footer Left', 'id'=>'footer-left', 'description' => 'Left side of the footer area', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '', 'after_title' => '' ) ); } add_action( 'widgets_init', 'big_buttons_widgets' ); /** * Enqueue comment-reply script */ function big_buttons_enqueue_comment_reply() { // on single blog post pages with comments open and threaded comments if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { // enqueue the javascript that performs in-link comment reply fanciness wp_enqueue_script( 'comment-reply' ); } } // Hook into wp_enqueue_scripts add_action( 'wp_enqueue_scripts', 'big_buttons_enqueue_comment_reply' ); /** * Filter the_title * * Filter 'the_title' to output '(Untitled)' if * no Post Title is provided */ function big_buttons_untitled_post( $title ) { if ( '' == $title ) { return '(' . __( 'Untitled', 'oenology' ) . ')'; } else { return $title; } } add_filter( 'the_title', 'big_buttons_untitled_post', 10, 1 ); /** * Filter 'get_comments_number' * * Filter 'get_comments_number' to display correct * number of comments (count only comments, not * trackbacks/pingbacks) * * @link http://www.wpbeginner.com/wp-tutorials/display-the-most-accurate-comment-count-in-wordpress/ WPBeginner */ function big_buttons_comment_count( $count ) { if ( ! is_admin() ) { global $id; $comments_by_type = &separate_comments(get_comments('status=approve&post_id=' . $id)); return count($comments_by_type['comment']); } else { return $count; } } add_filter('get_comments_number', 'big_buttons_comment_count', 0); /** * wp_list_comments() Pings Callback * * wp_list_comments() Callback function for * Pings (Trackbacks/Pingbacks) */ function big_buttons_comment_list_pings( $comment ) { $GLOBALS['comment'] = $comment; ?>
  • id="li-comment-">