Twenty Twelve Title Contain No Spaces

There is a conflict between the Twenty Twelve WordPress and the All in One SEO Pack plugin. When the plugin is installed and you happen to be using the Twenty Twelve theme, the result is, there will be no space between your site title and blog title. You’ll notice this if you look at the title bar of your browser. After a couple of searches, I found a fix online. It involves editing the Twenty Twelve functions.php file and commenting out line 185 which contains the code below.

You will need to change:

add_filter( 'wp_title', 'twentytwelve_wp_title', 10, 2 );

and comment out:

// add_filter( 'wp_title', 'twentytwelve_wp_title', 10, 2 );

Also, you need to clear your browser cache to see results.

Display Number of Posts On WordPress Themes

For WordPress Theme developers who want to display the number of WordPress posts on their themes, there is already a built-in function in WordPress that makes it easy to add stats to your templates. To display the number of posts, just add this code in your templates:

<?php wp_count_posts( $type, $perm ); ?> posts

$type and $perm are optional. You can omit them.

Place the code on the sidebar or the footer to display.

Black-Letterhead 1.6.2

I just released Black-Letterhead version 1.6.2. This latest version supports WordPress 2.9 scheduled for release within a week. WordPress 2.9 has a new feature called post thumbnails. It allows a thumbnail or an image to be displayed in each post. Previously, blog owners have been using plugins to have this feature available on their blogs.

Changes

Functions.php

To activate the post_thumbnail feature, the function has to be enabled in functions.php.

if (function_exists('add_theme_support')) add_theme_support('post-thumbnails');

Post.php

This entry is placed before the main content.

if (function_exists('the_post_thumbnail')) { the_post_thumbnail('post-thumbnail'); }

Single.php

This entry is the same as above, but in single page mode.

if (function_exists('the_post_thumbnail')) { the_post_thumbnail('post-thumbnail'); }

Index.php

Replaced navigation functions when viewing the home page.

 Footer.php

Edited copyright information to include year 2010. Users can modify footer.

Copyright © 2003-2010

Download
[download#1]

Black-Letterhead 1.6

Black-Letterhead 1.6 featured with a sample header image.


Black-Letterhead 1.6 is now available. The latest version now supports WordPress 2.7 which comes with several enhancements. The bulk of the WordPress 2.7 enhancements is in the redesign of the administration page – the Dashboard. It sports a new vertical menu bar on the left side with lots of new features too numerous to mention here.

Download.

The new Black-Letterhead 1.6 theme have these new features:

Threaded Comments

Black-Letterhead 1.6 takes advantage of one of the latest enhancements of WordPress 2.7, particularly in the area of threaded comments. Threaded comments are replies within a reply. Replies are placed directly underneath a reply instead of at the end of the list. Threaded replies are also indented to display a thread discussion.

Threaded comments will need to be enabled in the `Settings – Discussion` for the threaded comments to show up on the screen. Once enabled, you will see `Reply` links on every comment. Clicking on the `Reply` makes the comment form jump to that particular comment. `Click here to cancel Reply` will restore the comments form to the bottom.

In addition, Black-Letterhead 1.6 was coded to be downward compatible, meaning it will work with older versions of WordPress, not just WordPress 2.7. The theme contains a code that detects if a new function in WordPress 2.7 called wp_list_comments() is available. If it is, the script will load `comments.php.`

If your blog is running an older version of WordPress, then the theme will run the `legacy.comments.php` file. This is where the old comments.php code is stored. The code here is essential to keeping the Black-Letterhead downward compatible to older versions of WordPress.

Colors and Page Widths

I’ve added a several new features to Black-Letterhead 1.6.  The use of alternate stylesheets and a tiny Javascript allows for the theme to be styled with various colors and page widths. The change is instantaneous with just a click of mouse. The color options available are: the original orange color, red, blue, green, yellow, purple and teal. The two page widths are `default` and `wide` set at 760 and 960 pixels wide respectively.

To change colors or page widths, just click on `Preferences` located at the bottom of the Sidebar. The script sets a cookie in the user’s browser for a period of 365 days. If the cookie gets deleted, it will revert back to theme’s default setting. Cookies allow for browsers to remember the user’s preference for a period of 365 days.

Rotating Header Images

Another feature in 1.6 is the support of multiple and rotating header images. To add a header image(s), just place a 960x200px header image or images in the `images` folder. The script automatically detects an image and will display it. If more than one image is present, the script will randomly display the headers. If there are no images, the theme displays in normal mode.

Black-Letterhead 1.6 comes with a sample header image in the `images` folder. Just delete the image if you don’t want it. If you want rotating headers, just place 2 or more images in the same folder. The rotating script will randomly display the header images. If you use the Firefox browser, you may have to press Ctrl-F5 to refresh the screen.

As always, for support questions, please visit the Support Forum.

Download.

Black Green Theme

Introducing my latest WordPress theme called Black Green. It’s simple, ultra-minimal and uses an Ajax Accordion script. The theme is a spin of the Black-Letterhead theme, but it’s more elegant and simpler. See the Accordion script in action by clicking between the Articles and Archives links. For support, please visit the Support Forum.

[download id=”3″]

BBPress Theme

I was playing around with bbPress the other day and I came up with a new bbPress Theme called Black-Letterhead. The theme is based on Kakumei, the default theme that comes with the latest bbPress download. For those of you who know, I have a WordPress Theme called the Black-Letterhead. So, this is the bbPress version of the theme.

Preview

forum.png

Black-Letterhead 1.3

Black-Letterhead 1.3 is now available for download. The latest version comes Widget ready just like the previous version. Version 1.3 uses the WordPress Tooklit Theme allowing authors to create Admin Menus for customizing their themes. The latest features include the ability to:

  1. Select sidebar location: left or right.
  2. Select between two page widths: narrow and wide.
  3. Select whether to use header images or no header images.
  4. Ability to support rotating or random headers.
  5. Ability to modify theme colors such as main text, links and titles.

All these features are available from the Theme’s Configuration Panel. Give it a try. Download the latest from here.