Test a Website for ADA Compliance & WCAG Accessibility

ADA website compliance is an important aspect that every business owner should understand and be aware of. It’s always been important to develop a website following the WCAG and ADA compliance guidelines, but most websites out there don’t. It’s now…

Famous Fortune 1000 WordPress Sites

WordPress is a highly flexible publishing platform for the web that powers all kinds of websites, from local small businesses to Fortune 1000 enterprises. Examples of big brands using WordPress aren’t easy to find, so I decided to do my own research and compile a list of business from the Fortune 1000 that are currently using WordPress to power their website.

Fix Hanging Words in WordPress

Hanging words are known as typography widows, they’re those annoying scenarios where you find yourself with a single hanging word on it’s own line in an HTML element, like this: Everything looks great until we size down the viewport and…

Accessible Dropdown Menus for WordPress

Here’s a quick function that you can use to make any dropdown menus accessible in your WordPress theme. This assumes that you’re running a layer of JavaScript to actually make `.sub-menu` items appear when a top level menu item is hovered or clicked on. It wouldn’t be good to add this without having dropdown menus implemented, but hopefully that’s obvious.

Quickly Disable the WordPress API

WordPress comes pre-packaged with a robust REST API that’s great for certain use cases, but it also poses some security risks and concerns. If I’m you’re not using the REST API actively, it may be best to disable it. There…

jQuery Syntax Error Unrecognized Expression

As I upgrade older sites to use jQuery 3.3.1 I commonly encounter the following error: Uncaught Error: Syntax error, unrecognized expression: … This error occurs when you are trying to select something with an invalid selector. jQuery 2.x and 3.x…

Google Search Operators Reference

Google provides a set of lesser known, but highly useful, operators that can be used to refine and finely tune search results. These operators are incredibly useful when optimizing and analyzing websites for organic search. Below is a reference of the various operators, or symbols/words, that you can use in Google searches to make results more precise.

Fixing the Dreaded “SyntaxError: Unexpected Token in JSON”

If you’re seeing a SyntaxError: Unexpected token < in JSON at position 0 error in your browser console at angular.js:13920, or Line 13920 or angular.min.js, then it’s likely that you’re working with HTTP API’s, possibly using $resource or $http, and…

Auto Indent HTML in Sublime Text on Save

If you’re tired of manually re-formatting, indenting, structuring or beautifying HTML code in Sublime Text then you can use the following approach to automatically indent HTML files when you Save. Manual Auto-indent for HTML Based on common questions the following…

Markdown Filter for PHP’s Timber/Twig Templating Engine

Markdown is a wonderful way to write content on the web, it’s what I use to write every blog article you see here on kevinleary.net. While working with Upstatement’s Timber plugin I came across a situation where I wanted to…

Change a WordPress Plugin’s Menu Name

If you want to change the wording of an admin menu inside of WordPress without editing the plugin directly you can make use of the $menu global variable that exists within the WordPress admin. Manipulating this data structure will allow…

Building an Angular.js App in a WordPress Plugin

The tutorial will show you how to setup and work with Angular.js inside of a WordPress plugin to create a stand-alone, API powered, Angular.js single page app or microsite that is available at a defined path of a WordPress website.…

Git Remotes for an Existing Heroku App

I find myself doing this all the time, so I wanted to make note of the snippet here for anyone else commonly looking to add a Git remote for an existing Heroku app using the Heroku CLI. Open up your…

Seonix.org WordPress Redirect Hack

I picked up a strange issue on my WordPress site today while reviewing stats in Google Search Console. I noticed a malicious 301 redirect happening for an old post, one that had no redirect rules set. Specifically the post had…