PaulThology

Where Logic is a Blessing AND a Curse

PaulThology header image 2

Fix “About” and “Archives” in Cutline 1.1 and WordPress 2.2

May 22nd, 2007 · 3 Comments

1. Make sure you have pages named Archives and about listed in your Pages section. You may have to create them, and if so, see this post.

2. Get the page numbers, found in Manage-Pages.

Where you'll find the page IDs

3. Modify the header.php file to hardcode your links to the Archives and About pages. There are two lines in the header.php file (in wp-content/themes/Cutline 1.1 directory), around line 35-36, that say:

<li><a <?php if (is_archive() || is_page(’archives’)) echo(’class=”current” ‘); ?>href=”<?php bloginfo(’url’); ?>/archives/“>archives</a></li>
<li><a <?php if (is_page(’about’)) echo(’class=”current” ‘); ?>href=”<?php bloginfo(’url’); ?>/about/“>about</a></li>

You’ll need to change the part highlighted in bold to be your page_ids.

Result:
<li><a <?php if (is_archive() || is_page(’archives’)) echo(’class=”current” ‘); ?>href=”<?php bloginfo(’url’); ?>/?page_id=358“>archives</a></li>
<li><a <?php if (is_page(’about’)) echo(’class=”current” ‘); ?>href=”<?php bloginfo(’url’); ?>/?page_id=359“>about</a></li>

Keep in mind the actual numbers for your pages will be different than the 358 and 359 above.

Tags: Blogging

3 responses so far ↓

Leave a Comment