• Hi,

    I have as a sidebar on one of my sites an archive (yearly) of posts from 2010 – 1999).

    What I’m trying to do is have it such that if you’re in the 1999 archive page that that page in the sidebar menu appears highlight – much like you can highlight currently view pages and subpages etc.

    Is there a simple way to do this? I’m using this code to draw them in:

    <div id="sidebar">
    <ul class="pages_sub">
    <?php wp_get_archives('type=yearly&format=custom&before=<li class=\'page_item\'>&after=</li> '); ?>
    </ul>
    </div>
Viewing 2 replies - 1 through 2 (of 2 total)
  • Not using wp_get_archives().

    Please indulge us!

    I’ve searched high and low, and all the solutions seem to be rather ugly. I don’t want to implement javascript (and don’t know how) just to underline a post title.

    There are so many posts on this subject and very few answers…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Is there a way to highlight currently viewed archive?’ is closed to new replies.