I recently experienced a missing page error on my website.ย It didn’t match the theme at all.ย I was kind of disappointed, since the rest of theme had been done so nicely.ย I figured, no problem,ย I’ll just install and activate one of them handy dandy Plugins to resolve the error and then it will display nicely within the the content window of my theme.
I’ll admit at the moment, I’m a newbie to the WordPress framework.ย So, I have a little learning to do.ย ย After doing aย some googling on the subject, I discovered, thatย the missing file error is handled in the theme’s 404.php file.ย Usually, the theme author modifies the page to be minimalistic, blend in with the theme and display a friendly message to the user.ย Unfortunately,ย the error page in my theme must have slipped through theย cracks.ย It didn’t quite fit in, so I set out to create the error page that would fit my needs.
I found a great article Creating an Error 404 Pageย that gave some great suggestions.ย I ended up copying the default page, then pasting into the 404.php file.ย This got me part of the way to my pretty error page.ย But, it wasn’t trapping theย errors, like I had hoped it would.ย This is where I ended up installing and activating the “Useful 404’s module” at http://skullbit.com/wordpress-plugin/useful-404s/
This module maps the different kind of error codes and information into relatively useful messages.ย All you have to do, is paste in the code <?php useful404s(); ?>ย atย the strategic point in the 404.phhp file to make it all happen.
This expereience has piqued my interest in what it takes to developย Wordpress themes, Widgets and Plugins.ย Iย plan to increase my knowledge on customizing my WordPress environment.
Till next time, I’ll beย learning moreย about WordPress