Recent Posts

Here are my most recent posts

CSS

Why is my font-weight displaying wrong?

Pat Kavanagh • August 1, 2018

Have you ever run into a certain piece of text on your site that isn’t following the font-weight that you declared? Even worse, the correct CSS rule for font-weight is applied and your text still isn’t…

Read More

PHP

How do I cache my WP Query?

Pat Kavanagh • April 23, 2018

Caching is a great way to help improve your site’s page load time. We can achieve a lot of these caching goals through plugins and various server settings, but sometimes you need to get a little more…

Read More

Drupal

How can I Automatically Clear Cache for Drupal using Gulp?

Pat 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

Drupal

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

Pat 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

jQuery / Javascript

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

Pat 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

PHP

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

Pat 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

PHP

How Do I List Posts in a Taxonomy by Year?

Pat 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?

Pat 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

Shopify

How Do I List Posts by Category in Shopify?

Pat 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