Disable WordPress Comments Programmatically

August 30, 2023

This post exists primarily for my own future reference. Sometimes I want to disable all comments without using a plugin. The code below borrows heavily (maybe even copies blatantly!) from a couple GitHub repositories I came across a while ago: – – Here’s the code: /** * Disable post type support for comments […]

Read More

The Trouble with Accessibility Overlays

November 29, 2022

I think I first became familiar with when their clients started getting sued for accessibility issues ( Among people working in the accessibility field, overlays like Accessibe have such a bad reputation that 700 specialists have signed the Overlay Fact Sheet ( explaining the pitfalls of accessibility overlays. In my own testing, I’ve noticed […]

Read More

Enabling SmartSlider3 Support for the Editor Role

October 26, 2022

By default, the SmartSlider3 plugin only allows administrators to create/edit/delete sliders. In many cases, administrators may want to grant editors the ability to manage sliders. To do that, the following code can be placed in the active theme’s functions.php file (or in a plugin). /** * Give editors access to SmartSlider3 * * @see: […]

Read More

WPEngine and the Advanced Cache File

April 28, 2022

Today I ran across a strange situation where the dev tools for Chrome and Firefox were reporting different background color values for the same button. They were both reporting that the relevant CSS was in the same location, so it wasn’t a matter of a difference in cascade/priority. I changed the color value in the […]

Read More

CSS Hover: Targeting Mouse Input and Ignoring Touch Input

March 30, 2022

CSS hover states are pretty obviously targeted at mouse inputs, but are applied in strange ways to touch inputs as well. Thankfully, all modern browsers now support input-based media queries. This allows us to apply our hover states only to devices that truly support hover states. Here is the code that makes it work: @media(hover: […]

Read More

Add SVG Upload Support to Beaver Builder

March 28, 2022

By default, WordPress blocks SVG uploads. Beaver Builder also blocks SVG uploads withing the builder, but strangely it uses it’s own block list which it only applies to uploads. This means that you can enable SVG uploads within WordPress, upload an SVG file to the media library, and then make use of the file in […]

Read More

Paste Text without Formatting

November 10, 2021

How did I not know this already? ctrl+shift+v This keyboard shortcut pastes whatever text is in the clipboard, but removes the formatting.

Read More

Disable Clicks on Empty Menu Items

March 18, 2021

When creating a dropdown menu in WordPress, often the parent menu item is used simply as a hover point to access the submenu, not as an actual link. When this is the case, we can use the following steps to indicate to the user that these menu items are not to be clicked. 1. Set […]

Read More