Skip to content

Instantly share code, notes, and snippets.

@Sstobo
Created November 9, 2017 19:31
Show Gist options
  • Save Sstobo/8271af7d77e5e2dc742316d50c863568 to your computer and use it in GitHub Desktop.
Save Sstobo/8271af7d77e5e2dc742316d50c863568 to your computer and use it in GitHub Desktop.
[WP closing tags] #wp
Don't Forget!
When you build a WP theme, you want to make sure you include the following right before your closing <head> tag:
<!-- ...all of the <head> stuff above -->
<?php wp_head(); ?>
</head>
And this right before the closing body tag:
<!-- ...all of the <body> stuff above -->
<?php wp_footer(); ?>
</body>
These template tags are very important for dynamically appending CSS and JS to our pages...more on that tomorrow!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment