' . esc_html($more) . ''; } } add_filter( 'excerpt_more', 'talon_custom_excerpt' ); /** * Remove archive labels */ function talon_archive_labels($title) { if ( is_category() ) { $title = single_cat_title( '', false ); } elseif ( is_tag() ) { $title = single_tag_title( '', false ); } elseif ( is_author() ) { $title = '' . get_the_author() . '' ; } return $title; } add_filter( 'get_the_archive_title', 'talon_archive_labels'); /** * Blog layout */ function talon_blog_layout() { $layout = get_theme_mod('blog_layout','list'); return $layout; } /** * Single posts */ function talon_fullwidth_singles($classes) { if ( function_exists('is_woocommerce') ) { $woocommerce = is_woocommerce(); } else { $woocommerce = false; } $single_layout = get_theme_mod('fullwidth_single', 0); if ( is_single() && !$woocommerce && $single_layout ) { $classes[] = 'fullwidth-single'; } return $classes; } add_filter('body_class', 'talon_fullwidth_singles');