Recent Posts

Here are my most recent posts


How can I Automatically Clear Cache for Drupal using Gulp?

Buttons Kavanagh • February 5, 2018

Drupal is a CMS that relies pretty heavily on caching, and for whatever reason, there isn’t a great way to disable this for development which makes editing your templates a little more frustrating. Saving your file…

Read More


How do I get a page’s current URL in Twig for Drupal 8?

Buttons Kavanagh • November 20, 2017

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…

Read More


Why doesn’t my javascript click event work on iOS/iPhone?

Buttons Kavanagh • September 11, 2017

The overwhelming majority of browsers out there support event delegation for the click event, however, iOS does not. But, there is a way around this lack of support. Event delegation will work if the target of…

Read More


How Do I Get a Visitor’s Location Information using PHP?

Buttons Kavanagh • June 28, 2017

Sometimes we have content that is specific to a certain country and we only want to show, or hide, it for visitors from that country. Or maybe we want to change some of the language used on…

Read More


How Do I List Posts in a Taxonomy by Year?

Buttons Kavanagh • March 19, 2017

Listing posts by taxonomy term is a common feature requested when displaying blog posts. Sometimes you also want to separate those posts in sections by their year like this: 2017 News 2017 News Post 2017 News…

Read More

jQuery / Javascript

How Do I Autoplay Vimeo Videos Without Sound?

Buttons Kavanagh • February 16, 2017

Using video is a great way to get users on your website engaged with the content. And with video websites like Vimeo you can easily embed content onto your site without having to worry about uploading a…

Read More


How Do I List Posts by Category in Shopify?

Buttons Kavanagh • December 16, 2016

Having an FAQ section on your Shopify store can help improve your customer service while saving you from headaches of being asked the same questions over and over. This is a pretty easy task by using a…

Read More