How do I change my VVV dev site to use a new TLD?
With the release of Chrome 63 in December 2017 came extra grumbling from developers. The reason for this turmoil is because Chrome now forces https:// on any site that uses the .dev Top Level Domain (TLD)….
How do I develop a countdown timer?
So i’m getting married this year…I know, congratulations. Well, during the development of my wedding website I decided that I wanted to create a countdown timer that would capture the days, hours, minutes, and seconds until…
How can i stop my AJAX call so I can start a new one?
The use case for this was a search functionality that was triggered on keyup. That said, the more a user typed the ajax call would fire again and again till the search had queued so many…
Accessible Web Links: Why “Click Here” Has Got to Go
For the over 200 million people globally who have a vision impairment (source), the World Wide Web can be a difficult place to traverse. While screen readers provide more access to those with disabilities, not all websites…
How Do I Prepopulate a Form Field Based On Previous Page Input?
In this scenario, say you have a newsletter signup form on your homepage with one single email field to fill out. On submit of this field you would like the user to be sent to a new…
How do I Automate Website File Backups?
Automating Website File Backups Admittedly, this is not the most exciting topic to some, but one of the greatest things about the ever-evolving tech landscape is how we continue to find ways to offload tasks that…
Can strings be compared fuzzily?
It’s Thanksgiving week and you’re putting the finishing touches on your new e-commerce site, just in time for Black Friday. You’ve just gotten the product search functionality working, so you kick back in your chair and…
How do I get a page’s current URL in Twig for Drupal 8?
Having access to a site’s URL in your templates can come in handy for many different use cases, but one of the more common scenarios might be for those of you building multi-sites. Let’s say you’re building a site…
How do I update the URL on button click?
Do you have AJAX on a page and want to change the URL accordingly based on the new content? The following code will get rid of the last bit of the slug on your page and…
How do I place SVGs on a Google Map using Custom Overlays?
The Google Map API is very robust and allows you to do almost any customizations that you need to do to a map. One of the features that Google has created is Custom Overlays. A custom…
How to tell which action and filter hooks are available in a particular version of WordPress
If you ever need to know if a particular hook is available in the latest version of WordPress, Adam Brown has got you covered. If you ever need to know if a hook is available in a…
How do I make numbers ‘roll up’ when counting?
During a project recently we were tasked with demonstrating a number counting up in the way of rolling. A good way to describe the action is how you would see an old gas pump price or…
How do I set up a Drupal 8 Module to be an AJAX service?
File structures seem a lot different in Drupal 8, and I’m still getting the hang of them. This is an example of a simple module I made, so hopefully it can be a good starting point…
How Can I Query WordPress Posts and Sort by Their Relevance?
WP_Query allows us to query our WordPress posts and return results based on the taxonomy terms those posts are tagged with. It does this quite well, and can then sort the posts by date, alphabetically, menu order, etc….
How do I Nest Flexible Content Inside Flexible Content?
The challenge: could I build a module with nested flexible content fields in Advanced Custom Fields for a versatile image module? There is no innovation and creativity without failure. Period. ~Brene Brown Luckily, nesting flexible…