This page is about my really small modification of K2 Wordpress scheme - “Green”. It colours your K2 into green
.
Furthermore, this site doesn’t use this theme anymore, so it isn’t demo example anymore…
Features:
- Deep green color instead of blue.
- Blog title and description in header moved to the center.
- Enhanced <code> display.
Possibility to modify choosen templates to the no-sidebar version (see below).- this feature is now built-in into K2
Demo: whole jrunofficial.com site. This page demonstrates “no-sidebar version” of template (with a wider content instead) and below are examples of code display.
Download: the newest version is 0.9 published on 3 February ‘07.
Download - click here
*.zip, 1,2KB
Installation: copy green.css to /styles/ folder in your k2 (usually /wp-content/themes/k2/styles/) and activate it via administration panel: Presentation, K2 Options, Custom Scheme.
How to remove sidebar from choosen templates (and get more space for the content)?
Usually “pages” in Wodpress requires more space and don’t need all that stuff located in sidebar - in opposite to “posts”. How to change it?
It’s simple. There are only three steps to do. You have to:
Step 1 - create a new selector in your *.css file:
If you will use my “Green” theme you don’t need to modify anything - proceed to Step 2.
If no you have to make a new selector.
It must have a .dot prefix because it will be used as “class”.
I called it “.wide” (built-in to the “Green” style).
.wide class is used only with the #primary selector, which defines the overall page content width so our .wide looks as follows:
#primary.wide {
width: 600px;
margin: 0 0 0 90px;
}
Place it somewhere in a style.css (it’s located in a main K2 folder (usually /wp-content/themes/k2/).
Step 2 - apply new selector to the page:
Open a page template which you want to modify. It can be page.php located in the main folder of your k2 (usually /wp-content/themes/k2/page.php).
Find this:
<div id="primary">
…and change it to this:
<div id="primary" class="wide">
Step 3 - remove sidebar syntax:
Open a page template which you want to modify. It can be page.php located in the main folder of your k2 (usually wp-content/themes/k2/page.php)
Find this:
<?php get_sidebar(); ?>
…and remove it.
Done! Now all pages using “Default Template” (equal to page.php) have no sidebar and extra 100px width for your content.
You can do it also with other pages (i.e. page-comments.php) if you want.







0 Responses to “Green”