Have you ever needed to insert a piece of JavaScript into a single post or page? Maybe there is an external contact form from a vendor that you’ve been given a snippet of JavaScript to include? There are a number of ways to do this. You could put a conditional in your template file and…
Adding Post Type and Slug to the Body Classes
When I first started working with WordPress, in order to style things on a particular page, I often would use the page or post’s ID to target the styles for that page. After all, out-of-the-box, WordPress gives you a class on the body tag containing the post type and the ID like postid-455 or page-id-525….
Download YouTube Videos Using youtube-dl
There have been times when I have wanted to be able to add videos to my laptop or other portable device from YouTube to watch when I don’t have access to an Internet connection. For example, nothing makes a flight go by quicker than watching Rick Wolf and the bots play through Fallout 4. There…
Simple WordPress PlugIn to Replace Excerpt With Full Post
I recently posted my lame joke video mashing together The Andy Griffith with Star Wars. In posting it, the excerpt for the post was showing on my site’s homepage and one had to click through to watch the video. There was nothing much to the text of the post – the only thing of note…
Bartender for Mac
If you’re a Macintosh user, you probably appreciate a clean interface and nice aesthetics. One thing that can cause your Mac’s interface to become cluttered, though, is a myriad of icons in your menu bar. Many programs will allow you to turn off its menu bar icon but not all. Worse yet, you might have…
I’m Concerned About the Direction Ron Howard is Taking Star Wars
I just saw a trailer for Ron Howard’s upcoming movie about Han Solo and… I have a bad feeling about this. My apologies for the quick and dirty video editing. I didn’t want to spend too much time for a lame joke!
Move to the End and Beginning of a Word in PHPStorm
Another Macintosh keyboard shortcut that will be second nature to most Mac users is using ⌥← to move to the beginning of a word and ⌥→ to move to the end of a word. This moves the cursor to the left of the first character or the right of the last character. Try it in Mail. In…
Move Cursor to the Top of the Page in PHPStorm
I have started using JetBrain’s PHPStorm editor at work on a Macintosh and one of the things that has irked me is that some of the standard Macintosh keyboard shortcuts don’t work out of the box. For example, if you’re a seasoned Macintosh user, you are most likely used to using ⌘↑ to go to the…
Troubleshooting the White Screen of Death in WordPress
One question that I see asked a lot in the WordPress Support Forums is what to do when their website simply displays a white screen. This most likely represents a PHP fatal error that stops the server from generating the HTML for the browser to display. How to Find the Problem When PHP has a…
Setting up Mac navigation shortcuts in iTerm 2
If you’re a Macintosh user, it is probably second nature to use ⌥← to go back one word and ⌥→ to forward a word. Similarly, ⌘← will bring you to the beginning of a line while ⌘→ will jump you to the end. However, by default, iTerm 2, a great replacement for macOS’s included Terminal application, is not…