Modmat Bug Fixing
I discovered a bug in Modmat’s sandbox.php when following the article, Giving WordPress Its Own Directory, where clicking Home will take you to the URL listed in Settings > General > WordPress address (URL), which may not display your WordPress homepage properly.
Locate the following code in wp-content/themes/modmat/functions/sandbox.php:
echo '><a href="' . get_settings('siteurl') . '">Home</a>';
And replace it with this line:
echo '><a href="' . get_option('home') . '">Home</a>';
I’m currently using a modified version of Modmat as my theme, but as part of my WordPress CMS update project, I will slowly phase that out and develop my own theme from scratch. However, the theme I create will be extremely modular and generic, so that it will be easy to theme over and over again later for my clients.
So, if you haven’t figured it out, I changed my WordPress installation so that it will run from the root directory, without having to actually have the files cluttering the root directory. This means that I can separate my site from my business while making it all appear seamless. This information should actually be a part of my WordPress CMS Update entry series, but it’s a minor update and doesn’t justify creating a whole entry just for that, although I’ll include that change in the next update (for my own personal tracking purposes).


