Advertisement
Guest User

Untitled

a guest
Jun 18th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. <title>
  2. <?php
  3. // Print the <title> tag based on what is being viewed.
  4. global $page, $paged;
  5.  
  6. wp_title( '|', true, 'right' );
  7.  
  8. // Add the blog name.
  9. bloginfo( 'name' );
  10.  
  11. // Add the blog description for the home/front page.
  12. $site_description = get_bloginfo( 'description', 'display' );
  13. if ( $site_description && ( is_home() || is_front_page() ) ) {
  14. echo " | $site_description";
  15. }
  16.  
  17. // Add a page number if necessary:
  18. if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) {
  19. echo esc_html( ' | ' . sprintf( __( 'Page %s', 'twentyeleven' ), max( $paged, $page ) ) );
  20. }
  21.  
  22. ?>
  23. </title>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement