WordPress tutorials

The Ultimate Guide to WordPress Page Templates

One of the templates that I always include in any theme I code is the page.php file. This is the template that WordPress will use for creating static pages. It’s useful to have a dedicated page.php file instead of falling back to index.php because you’ll need your pages to display slightly different content from single posts. For example in a post you’ll generally include metadata such as the post date and the...

Read More

Learn How to Add Custom JavaScript to WordPress the Right Way

You’ve taken time to learn how to use JavaScript in WordPress. You’ve also picked up a number of useful JavaScript libraries and resources along the way to streamline coding with it. But now what do you do with the skills you’ve acquired? There are a number of reasons why you might want to add custom JavaScript to your WordPress site and there are also a number of ways in which you...

Read More