Sunday, November 25, 2007

My two cents on Word Press / Customizing 'PressRow'

WordPress is pretty cool. It is pretty feature rich, and allows alot of customization. You can also install it on a site, and it is your blog. Similar to blogspot, but it has more features.

Anyways I was messing with the press row theme today, and I wanted to have a top menu where each page could be clicked on, and have the black background when it is clicked on.

to do so. I used some html/css trickery

like the following

<div id="page" class=<? wp_title('',true); ?>>



<div id="header">

<h1><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1>

<div id="nav">

<ul>

<li><a class="blog" href="<?php bloginfo('url'); ?>">home</a></li>

<li><a class="Biography" href="<?php bloginfo('url'); ?>/biography/">biography</a></li>

<li><a class="Prosecuted" href="<?php bloginfo('url'); ?>/prosecuted-cases/">prosecuted cases</a></li>

<li><a class="Endorsements" href="<?php bloginfo('url'); ?>/endorsements/">endorsements</a></li>

<li><a class="Photo" href="<?php bloginfo('url'); ?>/photo-gallery/">photo gallery</a></li>

<li><a class="Get" href="<?php bloginfo('url'); ?>/get-involved/">get-involved</a></li>

<li><a class="Contact" href="<?php bloginfo('url'); ?>/contact/">contact</a></li>

</ul>

</div>


And wordpress will use the page name as the link, use the css of that page name, and you're all set. Also, be sure to edit your stylesheet too.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.