These days every developer is using some form of version control to manage their code bases and contributions from their team. Most predominantly we are using GIT as our version control of choice. No matter what form of version control you are using, the most important part of keeping a usable code history is, "Writing a proper commit message." Why? If you have ever used git log --grep or used an IDE to find commits you know the importance of having a relevant message to locate the … [Read more...]
Category: Tutorials (page 3)
Adding VAT to WooCommerce Billing Address
It is a common occurrence to receive requests for invoices that include a customer's VAT for use with their country's tax records. While WooCommerce does not ship with support for generating invoices, there are many great plugins which add invoice functionality. Previously, when someone requested a VAT to be added, we simply directed the customer to cram it into the existing address fields - not anymore! As of today, we've added a special field to the billing address for entering a VAT which … [Read more...]
Case Study: Displaying Highlighted Search Terms With Limited Content
As the content of a WordPress site grows (using this site as my case study) search results will also grow. Typically on a WordPress site the search results will either show the post content, the excerpt, or a limited version of the content. WordPress does not highlight the words in the content which match the search terms, nor does it automatically display the relevant sections of a post's content when using the excerpt or a limited version of content. This can lead to potentially unintuitive … [Read more...]
Node As A CLI
This is an exhaustive article on creating command line run scripts/executables with node and how it all works. It is broken into sections for convenience if you are looking for a specific topic. Otherwise, grab a coffee and prepare to learn more than you ever wanted to know about node cli. For the purpose of this article the words package and project are interchangeable and both mean a node app which is defined by the package.json standard. For the purposes of this article all project … [Read more...]
Responsive Image Srcset Sizes
So you are using WordPress right? Or maybe another modern CMS which supports responsive image srcsets? Alright, so you are a true pioneer rocking your own framework? Regardless of how your images get those helpful "srcset" attributes, this article will apply to you. Real quick refresher... the srcset attribute allows your browser to select the appropriate image src based on the current screen size and pixel density. This way you can load retina images or smaller versions depending on how you … [Read more...]
WordPress Redirect Loop When Logging In [Solved]
If you are using a WordPress as a submodule, PHP-FPM, and are hosting your site on WHM, you probably woke up today with and endless redirect loop when trying to login or access any .php core file directly. ERR_TOO_MANY_REDIRECTS This error which is affecting a massive amount of servers is coming from the "EasyApache4 October 31 update". Within this update a new redirect was added to PHP-FPM which catches .php files and attempts to redirect them to .txt files. This was part of an … [Read more...]



