Title: current page problems
Last modified: August 19, 2016

---

# current page problems

 *  [moonwoff](https://wordpress.org/support/users/moonwoff/)
 * (@moonwoff)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/current-page-problems/)
 * Hey.
 * I am having problems with my first page (blog).
    I would like the “hem” (blog)
   in the menu to turn black when I´m at that page. At this moment it doesn´t change
   like the other pages do (when they are active).
 * I have tried to put a current_page_item in the css, but that didn´t help. What
   should I do? Is the problem in the css or in the php? What should I change to
   what?

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

 *  [Chase Adams](https://wordpress.org/support/users/realchaseadams/)
 * (@realchaseadams)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/current-page-problems/#post-1702194)
 * Can you share the link please?
 *  [Chase Adams](https://wordpress.org/support/users/realchaseadams/)
 * (@realchaseadams)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/current-page-problems/#post-1702195)
 * Have you tried using <?php if (is_index()) { echo “current-page”; } ?> on the
   hem li class?
 *  Thread Starter [moonwoff](https://wordpress.org/support/users/moonwoff/)
 * (@moonwoff)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/current-page-problems/#post-1702200)
 * Oh, sorry.
 * [My link](http://www.bluechalo.com/wp2)
 * Where exactly should I put that in the li?
 *  [Chase Adams](https://wordpress.org/support/users/realchaseadams/)
 * (@realchaseadams)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/current-page-problems/#post-1702202)
 * so it should look like this:
 *     ```
       <li class="<?php
           if (is_index()) {
              echo "current-page";
           } ?> your current class that's there already">
       ```
   
 *  Thread Starter [moonwoff](https://wordpress.org/support/users/moonwoff/)
 * (@moonwoff)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/current-page-problems/#post-1702207)
 * That doesn´t work.
 * I put it like this
 *     ```
       <ul id="nav">
                          <li class="<?php
           if (is_index()) {
              echo "current-page";
           } ?> class="page_item">
                         <a href="<?php echo get_settings('home'); ?>/" title="Hem">Hem</a></li>
                         <?php wp_list_pages('sort_column=menu_order&depth=1&title_li=');?>
       ```
   

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

The topic ‘current page problems’ is closed to new replies.

 * 5 replies
 * 2 participants
 * Last reply from: [moonwoff](https://wordpress.org/support/users/moonwoff/)
 * Last activity: [15 years, 6 months ago](https://wordpress.org/support/topic/current-page-problems/#post-1702207)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
