Title: Blog directory
Last modified: August 18, 2016

---

# Blog directory

 *  [atarom](https://wordpress.org/support/users/atarom/)
 * (@atarom)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/blog-directory/)
 * I’m pretty new to wordpress. My knowledge of .css and .php is minimal. As such,
   I’m having difficulty with a couple. My site is [http://www.thehelmgallery.com](http://www.thehelmgallery.com)
 * When you use the hmenu, the active tab has a different background color. This
   was done using the follow code in the header.php
 * `<li><a href="?page_id=2"<?php if ($page_id == '2') { echo(' class="active"');}?
   >>ABOUT</a></li>`
 * and then specifying qualities for the active class. My problem is that my blog
   does not have a page_id. It is in the root. So there is no way to classify the
   Blog url because it has no directory. Also, if I wanted to make the About page
   my front page, I am then unable to access my blog.
 * There must be a more elegant way to code this, but I am at a loss.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [atarom](https://wordpress.org/support/users/atarom/)
 * (@atarom)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/blog-directory/#post-629043)
 * anyone?
 *  Thread Starter [atarom](https://wordpress.org/support/users/atarom/)
 * (@atarom)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/blog-directory/#post-629098)
 * last try =P
 *  [Chris_K](https://wordpress.org/support/users/handysolo/)
 * (@handysolo)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/blog-directory/#post-629099)
 * Have you seen the [Conditional_Tags](http://codex.wordpress.org/Conditional_Tags)
   page in the codex?
 * Perhaps, instead of
    `if ($page_id == '2')` you could try `if (is_home())` ?
 * [http://codex.wordpress.org/Conditional_Tags#The_Main_Page](http://codex.wordpress.org/Conditional_Tags#The_Main_Page)
 *  Thread Starter [atarom](https://wordpress.org/support/users/atarom/)
 * (@atarom)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/blog-directory/#post-629101)
 * Hey that worked great.
 * Sorry I’m noobish. I’ll start studying the codex =)

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Blog directory’ is closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 4 replies
 * 2 participants
 * Last reply from: [atarom](https://wordpress.org/support/users/atarom/)
 * Last activity: [18 years, 7 months ago](https://wordpress.org/support/topic/blog-directory/#post-629101)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
