'. esc_html__('Read More', 'alternate-lite') .'';
}
add_filter('excerpt_more', 'alternate_new_excerpt_more');
add_filter( 'wp_trim_excerpt', 'alternate_excerpt_metabox_more' );
function alternate_excerpt_metabox_more( $excerpt ) {
$output = $excerpt;
if ( has_excerpt() ) {
$output = sprintf( '%1$s ',
$excerpt,
get_permalink()
);
}
return $output;
}
}
/**
* Adds excerpt support for pages.
*/
add_post_type_support( 'page', 'excerpt');
/**
* Manages display of archive titles.
*/
function alternate_get_the_archive_title( $title ) {
if ( is_category() ) {
$title = single_cat_title( '', false );
} elseif ( is_tag() ) {
$title = single_tag_title( '', false );
} elseif ( is_author() ) {
$title = '' . get_the_author() . '';
} elseif ( is_year() ) {
$title = get_the_date( _x( 'Y', 'yearly archives date format','alternate-lite' ) );
} elseif ( is_month() ) {
$title = get_the_date( _x( 'F Y', 'monthly archives date format','alternate-lite' ) );
} elseif ( is_day() ) {
$title = get_the_date( _x( 'F j, Y', 'daily archives date format','alternate-lite' ) );
} elseif ( is_post_type_archive() ) {
$title = post_type_archive_title( '', false );
} elseif ( is_tax() ) {
$title = single_term_title( '', false );
} else {
$title = esc_html__( 'Archives', 'alternate-lite' );
}
return $title;
};
add_filter( 'get_the_archive_title', 'alternate_get_the_archive_title', 10, 1 );
add_theme_support( 'html5', array( 'gallery', 'caption' ) );
// display custom admin notice
function alternate_admin_notice__success() {
?>