- Basic Changes - Aesthetic modifications
- Modifying the Excerpt - Making it longer, adding “read more” links
- The Feature and Metapic Plugins - Errors getting it to work
- Other Plugins - Using other plugins with the Kiwi theme
- The Pages - Using Kiwi’s templates for static pages
- Misc. Issues - Generic Kiwi and Wordpress problems and fixes
Want to tweak your kiwi?
I’ve been messing with Kiwi since around the end of November, and have been helping people with tweaking their themes on their own sites. If you’re trying to change something and are getting stuck, here’s a few things to try out.
Please note that these are the most frequently covered changes and errors. If you’re encountering one that is not listed here, or are looking to make a change that I haven’t added here, stop by the N1L forums, where all of us Kiwi-lovin’ folks hang out and support this great theme.
Contents of the Kiwi Tutorials
- Overview - Basic changes and common errors
- How It All Works - The file tree and descriptions of the files included with the theme
- More Fruit - More fruity styles for your Kiwi-themed blog
- Upgrading - Upgrading Kiwi and Wordpress
Basic Changes
First things first. How do I change the default meet-kiwi header?
Replace the one that’s in the kiwi/images folder with whatever you want that’s the same dimensions and file name. You can use a different file name, but you’ll need to edit several of the template files to change it.
I have so many categories that they overlap my sidebar. Can this be fixed?
Sure. Edit /includes/kiwi_cat-footer.php, and look around the bottom. There should be a part that says “% 5″ - change the 5 to whatever makes your page look nice (try dividing the number of categories by 5 and using that number (round up to the nearest whole number if necessary!).
Can I make the banner lead back to my home page?
Edit single.php and just surround the image codes with the normal link code to return to your homepage.
Is there a way to add a link to edit a post from the index or post’s page, rather than going through the admin area?
Add
<?php edit_post_link(__(’[Edit This]‘)); ?>
whever you want it to appear - I stick it next to the title, since I’m the only one who can see it.
I have multipaged posts/pages/articles, but the links that let you navigate between pages is missing. Help!
Add a
<?php link_pages(); ?>
into the templates page.php and post.php - your best bet bet would be somewhere around the
<?php the_content(); ?>
Modifying the Excerpt
How do I put a “Read More” link below the excerpt?
Edit firstpost.php and subpost.php, and look for the line that says < ?php the_excerpt(); ?> and add the following line of code right after or on the line below it:
<a href='<?php the_permalink(); ?>' rel='bookmark' title='Continue reading...'>Read More... </a>
Speaking of excerpts, when I read the full post, the exceprt is repeated? How can I fix this?
Technically speaking, this isn’t something that needs to be fixed, as it is exactly how the theme was made to function when an author makes a post that includes a custom excerpt rather than just using the first part of the post’s content as the excerpt displayed on the page. If you’re like me and you don’t use a custom exceprt, you can do the following to remove the duplicate text from the page:
- Edit the single.php template and look for the part that calls for
<?php the_excerpt(); ?>
- Remove that particular tag and you should be all set and it won’t repeat the first part of the post.
What if I want a bigger excerpt, or even the whole post to be displayed?
If you want the entire post to show:
- Edit firstPost.php and subPost.php
- Change
<?php the_excerpt(); ?>
to
<?php the_content(); ?>
If you’d prefer to just use a longer excerpt, your best bet is to download a plugin called The Excerpt Reloaded, and just replace all calls for
<?php the_excerpt(); ?>
with the code you want.
The Feature and Metapic Plugins
I’m getting this error when I try to select a metapic/feature pic on the posting page: Warning: Invalid argument supplied for foreach() in path/to/your/kiwi/….
If you don’t want to tinker with editing the plugin code, make certain that you have the kiwi theme installed in /wp-content/themes/kiwi or you will get this error. If you are confident enough to edit the plugin, and you want to install the theme under a different directory name for whatever reason, kiwi-test for example, then you will need check that you have the correct directory listed in kiwi-the_feature.php. Open it up and look around line 100 for the part that says “You must edit this line”. By default, it’s going to search the /kiwi directory, but if you’re installed in /kiwi-test, it won’t be able to find the directory to scan, and will give you error messages.
Other Plugin Help
Kiwi + WPG2
If you’re using using the WPG2 plugin to embed Gallery2 into your Wordpress, I’ve made custom header/footer files to get it working nicely in both banner and first-post mode Kiwi configurations so that your images aren’t pushed way down below the sidebar links. Already using the plugin and want it to work w/ your kiwi? Here’s what you do.
-
download the header and footer files
- Unzip them and edit wpg2header.php to display whatever you want it to say in the post area rather than the generic text I’ve got in there. Make a summary of what’s in your gallery, an ode to the greatness of Yas and Kiwi, whatever you’d like.
- Upload with the rest of your kiwi theme files.
- In your WP admin panel, go in your WPG2 config page and make sure that the “Use WP Custom Header/Footer” options are both set to “yes”, and save/validate.
But I don’t use G2, I use Flickr. Can I integrate that into my Wordpress?
Sure you can! Here’s what you do:
- Download the Falbum plugin and install as directed.
- Replace the default falbum-wp.php file with this one
I’ve found that it looks much better with FAlbum’s drop shadow option used.
The Pages
None of the pages work! I keep getting 404/”Page Not Found” errors when I click on any of the menu links in the titlebar and/or sidebar !
The Kiwi theme includes page templates, not actual pages. To create those pages (about, elsewhere, etc), go into your WP as though you were going to make a post like you normally do, and in the navigation bar at the top of your WP posting page you’ll have the option to “Write Page”. Select that, and enter whatever you want to in the posting area, then select the appropriate page template from the list you’ll get (there should be some that say “archives”, “about”, etc). If you don’t choose a template, nothing bad will happen. Just be sure that you set the page slug to whatever the link is looking for - ie. if the page is /about/ set the slug to “about”, otherwise you will still get 404 errors.
I’ve followed your directions on making pages, but the URL shows up as www.mysite.com/?page=123 instead of www.mysite.com/pageslug. How can I get the URL to be all nice and pretty like yours?
Try updating your permalink structure in your Wordpress options. Unless Wordpress is using permalinks, it won’t recognize that URL.
Misc. Errors
What’s this “Warning: Cannot modify header information - headers already sent”
error for?
That’s usually an error that occurs when you make changes to a file and get whitespace added to the end of it. This page has a buttload of info on it.
My header graphic has disappeared, and all it shows is the words “Preview Image”! What happened?
The most likely cause of this is that you have Kiwi’s option set to display a random image if you haven’t chosen a metaimage for a post, but don’t have any images in your /images/titles directory. Add some pictures and you should be all set.
I’ve got images in the titles directory, but whenever I make a static page, my header image is gone and my theme looks broken.
When using WP to make static pages (like an “about” or “elsewhere” page), you might find that there’s 2 bugs that may occur:
- While it’s possible to set a page as a feature, you’ll notice that the page never shows up in the Featured box in the upper right of the page.
- There’s no way to set a metaimage, but the plugin still tries to save one, and since none is selected you end up with a broken meta image in your header.
To fix problem #1 and get your featured pages to show up in the featured box, edit kiwi-the_feature.php and look this line:
$request = \"SELECT post_id FROM $wpdb->postmeta LEFT OUTER JOIN $wpdb->posts ON ID = post_id WHERE post_status = 'publish' AND meta_key = 'featuretitle' AND post_id != '$exclude' ORDER BY rand() LIMIT $display\";
and replace it with this one:
$request = \"SELECT post_id FROM $wpdb->postmeta LEFT OUTER JOIN $wpdb->posts ON ID = post_id WHERE post_status != 'draft' AND meta_key = 'featuretitle' AND post_id != '$exclude' ORDER BY rand() LIMIT $display\";
Be sure that there’s no stray / symbols in what you paste - for some reason WP keeps adding them before the ” symbol, and if you do not remove them your code will not work!!!
To fix #2, edit kiwi-select_meta_image.php, and look for the following, right at the top of the file:
add_action('edit_form_advanced', 'select_meta_image');
add_action('save_post','save_meta_image');
add_action('edit_post','save_meta_image');
add_action('publish_post','save_meta_image');
Right below those, add the following line:
add_action('edit_page_form', 'select_meta_image');








