Mimicking TorrentFreak’s Semantic Style: First Paragraph Bold In WordPress

January 31, 2008 – 4:59 pm

Many developers love how TorrentFreak semantically lays out their blog.

The following tutorial will help you display the first paragraph normally on the Main Index Template of your WordPress blog ….

torrentfreak1.png

while making it bold in the full story (or Single Post) page when you click Continue… as seen below.

torrentfreak2.png

Getting Started

You need to be familiar with themes. In this tutorial, I will be using the default them with WordPress.

– index.php — Main Index Template

In this file, you will change this:

<?php the_content(’Read the rest of this entry »’); ?>

to this:

<?php the_excerpt(’Read the rest of this entry »’); ?>

– single.php — Single Post

In this file, you will add this just below the DIV class=entry

<b><?php the_excerpt(); ?></b>
<hr>

About Primezero

Primezero Research and Innovation is an engineering and semantics workshop, specializing in product development and rapid prototyping since 1996.

Primezero develops online learning tools for math, science, Mandarin Chinese teachers, as well as software for bloggers.

Major projects include: Arizona AIMS Mathematics Test Preparation Web Site for teachers and students, Primezero Chinese Tools 2008, and pzphp (open source toolsets) on Google Code, Chinese Seal Chop Widget for WordPress, Chinese Seal Chop Google Gadget, etc, etc, etc...

For more projects, see the Primezero Portfolio.

Post a Comment