Snippets

Enqueuing and Loading Custom CSS and JavaScript for Your WordPress Theme: Here’s One Way

Need to load custom CSS and or JavaScript for your custom WordPress theme? There are plenty of ways to do that; here’s mine. Header In your theme’s header.php file, make sure to include the wp_head() function just before the closing </head> tag. For example: Action Hook The hook to use for enqueuing both scripts and Enqueuing and Loading Custom CSS and JavaScript for Your WordPress Theme: Here’s One Way