1600, 'height' => 900, 'header-text' => true, 'uploads' => true, 'flex-width' => true, 'flex-height' => true, 'default-text-color' => '#000000', 'default-image' => get_template_directory_uri() . '/assets/img/default-cover-bg.jpg', ) ); add_theme_support( 'custom-background', array( 'default-image' => '', 'default-color' => '#ffffff', 'default-position-y' => 'top', 'default-position-x' => 'center', 'default-repeat' => 'no-repeat', 'default-size' => 'cover', 'default-attachment' => 'scroll', ) ); add_theme_support( 'custom-logo', array( 'height' => 120, 'width' => 120, 'flex-height' => true, 'flex-width' => true, 'header-text' => array( 'site-title', 'site-description' ), ) ); add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', 'script', 'style', ) ); add_theme_support( 'post-formats', array( 'audio', 'gallery', 'image', 'link', 'quote', 'video', ) ); add_theme_support( 'customize-selective-refresh-widgets' ); add_theme_support( 'responsive-embeds' ); add_theme_support( 'align-wide' ); if ( ( ! is_admin() ) && is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } } /** * Create custom length with read more link excerpt. */ function athlonx_custom_excerpt_length() { $length = 25; $excerpt = explode( ' ', get_the_excerpt(), $length ); if ( count( $excerpt ) >= $length ) { array_pop( $excerpt ); } if ( is_singular() ) { $excerpt = implode( ' ', $excerpt ); } else { if ( count( $excerpt ) === 1 ) { $excerpt = 'Continue reading...'; } else { $excerpt = implode( ' ', $excerpt ) . '...

Continue reading...'; } } $excerpt = preg_replace( '`[[^]]*]`', '', $excerpt ); return $excerpt; } function athlonx_theme_options_link() { add_theme_page( 'Theme Options', 'Theme Options', 'manage_options', admin_url( '/customize.php?autofocus[panel]=athlonx_theme_options' ), '' ); } add_action( 'admin_menu', 'athlonx_theme_options_link' );