Configuring Kubrick 1.2.4a to work with a nested blog directory
Here is an updated mini-HOWTO on configuring Michael Heilemann’s Kubrick theme to work with WordPress when installed in a nested (non root) directory structure. My prior HOWTO seemed to help some people so I thought I’d take the time to update it to reflect the current release (1.2.4a) of Kubrick. Fortunately, Michael has made a number of improvements since I wrote the original HOWTO so configuring it is much simpler.
Before you begin be sure to have your WordPress address (URI) and Blog address (URI) set properly for your install of WordPress. You can find this on the General Options tab of the WordPress admin interface. It should reflect your nested directory. For example: http://joncellini.com/blog/
Now copy the files to your server as described in the instructions then make the following edits. I included the line number of the various edits to make describing them easier.
-
search.php
- Edit the four occurrences of hyperlinks (look for the
a href=) in line 34 to reference the proper nested path to your archives
-
.htaccess (htaccess_template)
- Edit and save this file as
.htaccess - Edit the rewrite rule targets (the string on the right) as mentioned in the readme to reflect the nested path to the various documents, you will edit every line except for lines 1,2 and 34
Assuming you made all these edits properly you should find that everything should now be working as you would expect. Compared to prior releases of Kubrick these edits are a breeze. Leave a comment if you see any errors or can think of something that needs to be clarified further.
Appreciate the update for the new release. Ironically I hadn’t made the changes above and all seemed to work well, then made the changes and seems to work the same. I’m stumped.
I am, though, having trouble getting my links to show up in the “sidebar” since installing Kubrick. Noticed your links seem to be showing up just fine. Any ideas?
Small world by the way - I live in Aurora, OR.
Hi small world indeed. I’m curious on how you came across this site.
The changes to the search.php file are subtile, however, without them you will have a problem with content rendered by the search.php page. Basically the date / time links will not reflect the proper nested directory path. I was going to drop Michael a note suggesting that he fix them in one of the updated releases of Kubrick.
Having the links show up in the sidebar actually requires a customization to Kubrick as it does not include this functionality out of the box. Fortunately it is very easy to add by editing the included index.php file.
Open yours up in your editor of choice and add the following under the “menu” div:
<!-- Begin Custom -->
<h2>Links</h2>
<?php get_links_list(); ?>
<!-- End Custom -->
The get_links_list() function is built into WordPress and used to populate the sidebar links.
Hope this helps!
Worked like a charm! Really appreciate the help. As to how I got to your blog - pretty sure it was via a Google search while trying to troubleshoot my Kubrick installation. Don’t believe it was on the WordPress forums but could be mistaken. Again, thanks for the help!
I’m glad it helped.