JavaScript, like many programming languages, has some great ways to compartmentalize and structure code to make it more maintainable, more readable, and more reliable. This post will cover two things that can help developers to organize their code: namespacing and singletons.
Read More Writing Clean(er) JavaScriptCategory: Development
Recent Changes to generator-plugin-wp
I last went over the features of generator-plugin-wp in May and a lot has changed since then! There are three more sub-generators (and more on the way), the JavaScript workflow is improved, PHPUnit tests are built in for the main plugin generator and all...
Read More Recent Changes to generator-plugin-wpSolving the Responsive Images Problem with WordPress Responsive Images
The quest for a beautiful, responsive website is ever-present. As front-end developers, we know the tricks of the trade when it comes to making all of those fancy little features work from desktop to mobile. Whether it’s degrading hover-based actions gracefully or...
Read More Solving the Responsive Images Problem with WordPress Responsive ImagesIntroducing vv 1.9: The Most Feature-Filled Release Yet
Introducing version 1.9 of vv! In the WordPress world, quite a few developers use Varying Vagrant Vagrants for their local development environments. Just under a year ago, I started building Variable VVV, a tool to help people leverage VVV and make it easier...
Read More Introducing vv 1.9: The Most Feature-Filled Release YetBuddyPress: Adding Custom Notifications
Social networks run on notifications and BuddyPress helps make that happen. BuddyPress sends out notifications for various actions on the site, like when you get a message from a friend or when someone replies to your status update. Though BuddyPress sends out quite...
Read More BuddyPress: Adding Custom NotificationsUsing Sass to Manage Layers with z-index
On a recent project, I started to feel a bit overwhelmed with managing numerous layers with z-index. The thing about z-index is that all of the layers have to be in order, so I end up with multiple z-index declarations in multiple files...
Read More Using Sass to Manage Layers with z-indexModernize Your WordPress JavaScript
Not too long ago, I walked through the basics of using Browserify to organize and improve your JavaScript. Let’s build on that and take it to the next level while smoothly integrating with WordPress’ built-in JavaScript interface.
Read More Modernize Your WordPress JavaScriptHow to Search Everything Within Custom Post Types
Editor’s note: The following blog post was written in 2015. We can’t guarantee the accuracy of the code and presented solutions, but we’ve chosen to keep this blog post live for those who still find the information useful. If you’re using Custom...
Read More How to Search Everything Within Custom Post TypesWhat’s New with BuddyPress
BuddyPress is always in active development, so new features, fixes, and enhancements are continually being released. Let’s go over some updates you might have missed! This is a real quick and dirty rundown with links to more information on each bit, but let...
Read More What’s New with BuddyPress