Matt McDowell

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

How to prevent Nginx from redirecting to the wrong site when there’s a secure certificate error

https://serverfault.com/a/846214 When multiple sites share the same server and there is no default site set in the server config, Nginx will redirect to the first site in the config, if there’s a secure certificate error. Here’s how to fix that, based on the linked answer above. 1 – Create a default zone As nginx is How to prevent Nginx from redirecting to the wrong site when there’s a secure certificate error

Inclusive Components, a book on web accessibility by Heydon Pickering

https://www.smashingmagazine.com/2019/11/inclusive-components-prerelease/ I’m a big fan of the patterns library at A11Y Project. This book feels really similar. To me, this is the most useful kind of accessibility guide. Grab and go components that you can use and adapt to your current project.