David Walsh Tutorials
![Debating Which WP Theme Is Better, Divi 2 Or Salient]()
Debating Which WP Theme Is Better, Divi 2 Or Salient
Since web design is something people seem more and more interested in, developers have made available an impressive range of products for people to go wild with. Nowadays, there is quite a variety of tools and resources that a web designer can choose to make work for...
![Shaving Bytes with JavaScript Booleans]()
Shaving Bytes with JavaScript Booleans
Developers are always search for ultimate way to create something with the least amount of code. This, of course, is one of the reasons we use minifiers: to serve code as small as possible. Of course this practice has numerous benefits, like faster download time, less storage...
![Prevent XSS “on” Attribute Attacks in CKEditor 3.x]()
Prevent XSS “on” Attribute Attacks in CKEditor 3.x
CKEditor 3.x had issues with XSS /security issues with
onattributes. For example, you could trigger malicious code via anonerrorattribute -- ouch! Of course the problem has been fixed in CKEditor 4 but upgrading can be an issue if you have custom plugins. Here's how the issue...![Install NPM from Command Line]()
Install NPM from Command Line
I was trying to update my version of NPM using NPM but long story short, a permissions issue allowed NPM to be removed but not re-installed, and thus I was hosed -- NPM was nowhere to be found on "Walshbook Pro." Eeeek. Well, you can install NPM via...
![7 Things You Didn’t Know You Could Do with CSS]()
7 Things You Didn’t Know You Could Do with CSS
CSS and JavaScript, believe it or not, are starting to overlap as CSS adds more functionality. When I wrote 5 Ways that CSS and JavaScript Interact That You May Not Know About, people were surprised at how CSS and JavaScript have come to overlap.
![Get the Git Commit ID via Command Line]()
Get the Git Commit ID via Command Line
I know just enough git to be dangerous. I'm not doing advanced bisecting but I can stash, rebase, and reset with the best of them. One new trick I learned from my boss, Luke Crouch, saves me loads of time: getting the commit ID via command...
![Add Menu Items to the WordPress Admin Menu]()
Add Menu Items to the WordPress Admin Menu
The existing menus in WordPress are solid but one annoyance is that I need to click "All Posts" and then the "Drafts" link to get to my drafts; I simply want to get there as quickly as possible via the Posts menu. I did...
![Stylus PX to REM Mixin]()
Stylus PX to REM Mixin
The
REMunit is the hottest thing since Christina Ricci ... it's hot. And it's especially hot when it comes to font size. Rather than paraphrase a bunch of documentation as to why REM is important, I'd like to point you to Jonathan Snook's outstanding![jQuery: Multiple AJAX and JSON Requests, One Callback]()
jQuery: Multiple AJAX and JSON Requests, One Callback
I've been working on a new feature for the Mozilla Developer Network which requires loading of a basic script file as well as a JSON stream. Since we use jQuery, that means a
jQuery.getScriptand ajQuery.getJSON. I know those both work asynchronously and...![Track JavaScript Errors with Google Analytics]()
Track JavaScript Errors with Google Analytics
Google Analytics has always been more than a hit counter and demographic tool -- you could build a career out of being a Google Analytics analyst. You can measure ad campaign effectiveness, track how far into a desired page flow (think advertisement to cart to checkout)...








