Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function radium_wp_title( $title, $sep ) {
- if ( is_feed() ) {
- return $title;
- }
- global $page, $paged;
- // Add the blog name
- /* COMMENT: Issue with doubled page description and title in head-title solved by commenting out below code. */
- // $title .= get_bloginfo( 'name', 'display' );
- /* // Add the blog description for the home/front page.
- $site_description = get_bloginfo( 'description', 'display' );
- if ( $site_description && ( is_home() || is_front_page() ) ) {
- $title .= " $sep $site_description";
- } */
- // Add a page number if necessary:
- if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) {
- $title .= " $sep " . sprintf( __( 'Page %s', 'radium' ), max( $paged, $page ) );
- }
- return $title;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement