Documenting the modifications to K2 RC3 to make it into a generic I-want-to-make-a-show-in-a-box-theme-from-K2 theme.
When a new version of K2 comes out, we'll have to double-check all of these modifications and note any changes.
2. Swap out the main style.css with this one
The main style.css file has lots of changes from the K2 style.css file.
3. Make the static pages default to no sidbars
Duplicate /page.php and rename it /page-w-sidebars.php
Add this to the top of the page to make it a new page template:
<?php
/*
Template Name: Page w/ Sidebars
*/
?>
Change the default page.php file
Add a <div id="nosidebars"> tag to wrap around the <div id="primary">
<div id="nosidebars">
<div id="primary">
blah blah blah...
</div> <!-- #primary -->
</div> <!-- #nosidebars -->
And then, delete:
<?php get_sidebar(); ?>
The div #nosidebars centers the content (#nosidebars is defined in style.css).
The second step eliminates the sidebars.
4. Customize the theme screenshot
Swap out the graphic /screenshot.jpg
The info next to the screenshot is controlled by the comment at the top of the main css file, "style.css", in the root level of the theme directory (which was changed by Step 2 above)
5. Change the default Theme Options
Edit /app/classes/options.php
Turn off K2 options that don't make sense for us
Change the values on Lines 6, 10, and 12 from "1" to "0"
Change the value on Line 8 from "0" to "1"
Change the Theme Options button text in the WP Admin panel
Change line 13 from:
add_option('k2blogornoblog', 'Blog', 'The text on the first tab in the header navigation.');
To:
add_option('k2blogornoblog', 'Home', 'The text on the first tab in the header navigation.');
Change default site navigation first button from "Blog" to "Home"
Change line 54 from:
add_theme_page(__('K2 Options','k2_domain'), __('K2 Options','k2_domain'), 'edit_themes', 'k2-options', array('K2Options', 'admin'));
To:
add_theme_page(__('Theme Options','k2_domain'), __('Theme Options','k2_domain'), 'edit_themes', 'k2-options', array('K2Options', 'admin'));
6. Change the Theme Options Page
Modify /app/display/options.php
Moved the Style and Header sections to the top of the page.
Separated column selection from sidebar manager section.
Edited lots of the accompanying text.
To add support for our default widths change line 37–40 to:
$header_sizes = array(
1 => __('700 x 100 px','k2_domain'),
__('925 x 100 px','k2_domain'),
__('990 x 100 px','k2_domain')
There are lots of changes to this page so just use this one - [Download]. When a new version of K2 comes out we'll have to double-check all of these mods and make sure they still work and/or are applicable.
7. Change the Footer credits
Modify /footer.php
Replace lines 16 - 18:
sprintf('<a href="http://getk2.com" title="%1$s">K2<!-- %2$s--></a>',
__('Loves you like a kitten.','k2_domain'),
get_k2info('version')
With:
sprintf('<a href="#" title="%1$s">Theme Name<!-- %2$s--></a>',
__('Developer Name','k2_domain'),
get_k2info('version')
Then erase the feed info
Comments (0)
You don't have permission to comment on this page.