WordPress.org

Ready to get started?Download WordPress

Forums

Highlight current page in sidebar widget (5 posts)

  1. johnegg
    Member
    Posted 4 years ago #

    Hi guys

    Is there any way to highlight the current (active) page or post in the sidebar nav widget using css?

    Cheers
    John

  2. dor
    Member
    Posted 4 years ago #

    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.

  3. johnegg
    Member
    Posted 4 years ago #

    Thanks. Im getting somewhere with it. Found 'current_page_item' but still cant get it to work properly.

  4. dor
    Member
    Posted 4 years ago #

    In you stylesheet:

    .current_page_item {
      background: yellow;
    }

    Or what's the question?-)

  5. roohit
    Member
    Posted 4 years ago #

    To highlight the current page look at 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

Topic Closed

This topic has been closed to new replies.

About this Topic