Posted By

oneupdzn on 05/04/13


Tagged

wordpress headerhead


Versions (?)

Wordpress header


 / Published in: PHP
 

Wordpress section.

  1. <!DOCTYPE html>
  2. <!--[if lt IE 7]><html <?php language_attributes(); ?> class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
  3. <!--[if (IE 7)&!(IEMobile)]><html <?php language_attributes(); ?> class="no-js lt-ie9 lt-ie8"><![endif]-->
  4. <!--[if (IE 8)&!(IEMobile)]><html <?php language_attributes(); ?> class="no-js lt-ie9"><![endif]-->
  5. <!--[if gt IE 8]><!--> <html <?php language_attributes(); ?> class="no-js"><!--<![endif]-->
  6. <head>
  7. <meta charset="<?php bloginfo( 'charset' ); ?>" />
  8. <meta name="viewport" content="width=device-width" />
  9.  
  10. <!-- Dynamic title-->
  11. <title>
  12. <?php if (function_exists('is_tag') && is_tag()) {
  13. single_tag_title('Tag Archive for &quot;'); echo '&quot; - ';
  14. } elseif (is_archive()) {
  15. wp_title(''); echo ' Archive - ';
  16. } elseif (is_search()) {
  17. echo 'Search for &quot;'.wp_specialchars($s).'&quot; - ';
  18. } elseif (!(is_404()) && (is_single()) || (is_page())) {
  19. wp_title(''); echo ' - ';
  20. } elseif (is_404()) {
  21. echo 'Not Found - ';
  22. }
  23. if (is_home()) {
  24. bloginfo('name'); echo ' - '; bloginfo('description');
  25. } else {
  26. bloginfo('name');
  27. }
  28. if ($paged > 1) {
  29. echo ' - page '. $paged;
  30. } ?>
  31. </title>
  32.  
  33. <link rel="profile" href="http://gmpg.org/xfn/11" />
  34. <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
  35.  
  36. <!-- load CSS files -->
  37.  
  38. <link rel='stylesheet' href='<?php bloginfo("stylesheet_url"); ?>' type='text/css' media='screen' />
  39.  
  40. <link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/other.css" type="text/css">
  41.  
  42. <!-- load JS files -->
  43.  
  44. <?php wp_enqueue_script('jquery'); ?>
  45.  
  46. <script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/js/myscript.js"></script>
  47.  
  48. <!--[if lt IE 9]>
  49. <script src="<?php echo get_template_directory_uri(); ?>/js/example.js" type="text/javascript"></script>
  50. <![endif]-->
  51.  
  52. <!-- load comments on single post -->
  53. <?php if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); ?>
  54.  
  55. <!-- load WP head -->
  56.  
  57. <?php wp_head(); ?>
  58.  
  59. </head>

Report this snippet  

You need to login to post a comment.