Password Protect Directory in WordPress with .htaccess file

I was having a difficult time finding information on how to password protect a directory in WordPress without it throwing a 404 not found error. After lots of searching and multiple examples across lots of other sites, here’s the short and sweet version, all in one place. Step 1: Create a file called 401.html and […]

Read More…

Change Custom Post Type Taxonomy Labels

Sometimes taxonomies for custom post types are created by themes and plugins you use on your site. Occasionally you may want to change their names to better reflect their use on your site, without changing the theme/plugin files directly. Add this code to functions.php or to a custom plugin. <?php /************************************************************** * Change Custom Post […]

Read More…

Change Custom Post Type Labels

Ever need to change the labels on a custom post type created by a theme or plugin? Want to make sure you do it without modifying the files themselves? Add this code snippet to either your functions.php file or create your own plugin with it. <?php /************************************************************** * Change Custom Post Type Labels **************************************************************/ function […]

Read More…

iDevice Home Screen Icon

Ever tried to add a website to the home screen of your iPhone or iPad and get a weird half filled out screenshot of the page? Well take control of your icons with this handy bit of code! Add this to the header.php file of your WordPress theme: <link rel=”apple-touch-icon” href=”/path/to/icon.png”> That’s all it takes! […]

Read More…