Title: Highlight current page in sidebar widget
Last modified: August 19, 2016

---

# Highlight current page in sidebar widget

 *  [johnegg](https://wordpress.org/support/users/johnegg/)
 * (@johnegg)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/highlight-current-page-in-sidebar-widget/)
 * Hi guys
 * Is there any way to highlight the current (active) page or post in the sidebar
   nav widget using css?
 * Cheers
    John

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

 *  [dor](https://wordpress.org/support/users/dor/)
 * (@dor)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/highlight-current-page-in-sidebar-widget/#post-1160029)
 * If your theme puts this item in a separate class — yes.
 * ps. That theme, which i’m using, puts `class="current_page_item"` for current
   item. Probably, not the theme does this, i’m using Flexi Pages widget… Sorry 
   for the noise, if any.
 *  Thread Starter [johnegg](https://wordpress.org/support/users/johnegg/)
 * (@johnegg)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/highlight-current-page-in-sidebar-widget/#post-1160031)
 * Thanks. Im getting somewhere with it. Found ‘current_page_item’ but still cant
   get it to work properly.
 *  [dor](https://wordpress.org/support/users/dor/)
 * (@dor)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/highlight-current-page-in-sidebar-widget/#post-1160051)
 * In you stylesheet:
 *     ```
       .current_page_item {
         background: yellow;
       }
       ```
   
 * Or what’s the question?-)
 *  [roohit](https://wordpress.org/support/users/roohit/)
 * (@roohit)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/highlight-current-page-in-sidebar-widget/#post-1160293)
 * To highlight the current page look at [http://wordpress.org/extend/plugins/instant-web-highlighter/](http://wordpress.org/extend/plugins/instant-web-highlighter/)
 * and to have those highlights appear in the sidebar see
    [http://roohit.com/site/s_lite.php](http://roohit.com/site/s_lite.php)

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

The topic ‘Highlight current page in sidebar widget’ is closed to new replies.

## Tags

 * [current page](https://wordpress.org/support/topic-tag/current-page/)
 * [navigation](https://wordpress.org/support/topic-tag/navigation/)
 * [sidebar](https://wordpress.org/support/topic-tag/sidebar/)
 * [widget](https://wordpress.org/support/topic-tag/widget/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [roohit](https://wordpress.org/support/users/roohit/)
 * Last activity: [16 years, 8 months ago](https://wordpress.org/support/topic/highlight-current-page-in-sidebar-widget/#post-1160293)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
