Title: Hightlighting current post
Last modified: July 8, 2020

---

# Hightlighting current post

 *  Resolved [peterjem](https://wordpress.org/support/users/peterjem/)
 * (@peterjem)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/hightlighting-current-post/)
 * Hello,
    Is it possible to highlight the opened post in the sidebar? Tried this
   trick, but no success.
 *     ```
       .same-category-post-current {
          background-color: #F0F8FF;
          color: #00000;
       }
       ```
   
 * Thanks

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

 *  Plugin Author [Daniel Floeter](https://wordpress.org/support/users/kometschuh/)
 * (@kometschuh)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/hightlighting-current-post/#post-13098389)
 * It’s right. But try a more specific selector and use !important for override 
   all your Theme’s styling:
 *     ```
       .same_category-post-current a {
           color: red !important;
       }
   
       .same_category-post-current {
           background-color: #F0F8FF !important;
       }
       ```
   
 *  Thread Starter [peterjem](https://wordpress.org/support/users/peterjem/)
 * (@peterjem)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/hightlighting-current-post/#post-13112074)
 * Thanks a lot, it worked.
 * Cheers.

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

The topic ‘Hightlighting current post’ is closed to new replies.

 * ![](https://ps.w.org/same-category-posts/assets/icon-256x256.png?rev=1419009)
 * [Same Category Posts](https://wordpress.org/plugins/same-category-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/same-category-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/same-category-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/same-category-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/same-category-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/same-category-posts/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [peterjem](https://wordpress.org/support/users/peterjem/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/hightlighting-current-post/#post-13112074)
 * Status: resolved