How to Include & Indent Subcategories Using wp_dropdown_categories

Title of blog post with landscape background

I was using wp_dropdown_categories() this week to, well… Create a dropdown menu that links users to the category archives page on a WordPress website, obviously. And I couldn’t figure out how to indent the subcategories, even though that seemed like a very obvious thing you’d want to do. Google was amazingly useless in this task. Though it almost always is, … Read More

Redirect Entire WordPress Website Except One Page

Banner for post with post title overlaid over photo of car near sharp turn

Redirecting or forwarding an entire WordPress website except a single page (such as the home page) to another address is actually quite easy. If you’re here, I’m guessing you followed a number of tutorials and tried your hand at crafting the perfect .htaccess file only to be let down every single time when it inevitably didn’t work at all. Well … Read More

Checklist of Ways WordPress Redirects to HTTPS + How to Force HTTP

This post might seem a little backwards but there is way less information for this topic than the other way around! I am regularly faced with the need to force http rather than the other way around. Disabling SSL and its inherent encryption is generally not something you want to do in ideal circumstances, but I suspect nobody is here under ideal … Read More

Redirect One File Extension to Another with .htaccess

Redirect File Extension To Another Htaccess

For something seemingly so simple, it’s amazingly hard to find a good solution that redirects all files with a given extension on your site to another. I spent a long time Googling and testing and still kept running into issues. But my wasted time is your gain! Because I’ve figured it out. As it turns out, there is more way … Read More

Converting SSI / SHTM Sites to PHP in Minutes – Guide

I was recently lucky enough to purchase a local website hosting company, and I quickly discovered that about 30% of the websites used .shtm files. These SSI files used “HTML Include” directives to load additional content to each page, such as the header and footer. And they didn’t function – at all – on my servers. As it turns out, … Read More

How to De-index Individual Pages in WordPress

Title banner for the page - reads "How to De-index Individual Pages in WordPress"

For a variety of reasons, you may have some pages on your WordPress website which you need to prevent Google from indexing. There is a right way to do it and a wrong way. Maybe you’ve just received the nasty notice from Google regarding your robots.txt file and how you need to remove the “noindex” directives from within and have … Read More

New Website Woes – What’s Normal?

So you’ve just launched your brand new website design. You’ve gone through weeks or months of development and revisions, and you’re so excited to show it off to the world. But then… A confused text from a client whose just visited your new site. “I can’t navigate to any of the sub-pages on my phone!” he says. Your mind immediately … Read More

How to Pass a PHP Variable to JavaScript – Easy Way

For something seemingly so straight-forward, you would think that the information out there would be a bit better on this subject. Passing a variable from PHP to JavaScript is actually very easy! There are just a couple things you need to keep in mind and some ways to do it to ensure it actually works. I find that putting the … Read More

How to Add Reusable Content Block in X Theme & Cornerstone

Working every day with X Theme and Cornerstone, I frequently find myself needing to re-use sections of my content on different parts of my website. While I know that I could save a block of Cornerstone content as a template and re-use it, the problem is that it wouldn’t update whenever I redid the master template. So how do we solve this … Read More

WordPress: How to Manage Site Files Without FTP Access

As a web developer, I frequently encounter situations where I need to have access and modify files in the root directory or within the WordPress install and I don’t have FTP access. Often, I simply want to update some plugins but don’t want to do it without access to these, in case something goes wrong. Well now you can do … Read More