Skip to content

Instantly share code, notes, and snippets.

@ajuliano
Last active July 5, 2017 14:12
Show Gist options
  • Save ajuliano/b94f2fbbe854a08b7d50eeab98cef43f to your computer and use it in GitHub Desktop.
Save ajuliano/b94f2fbbe854a08b7d50eeab98cef43f to your computer and use it in GitHub Desktop.
Standard head on in WordPress-projects
<!doctype html>
<html <?php language_attributes(); ?> class="no-js <?php echo wp_is_mobile() ? 'mobile' : ''; ?>">
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment