Grow your CSS skills. Land your dream job.

WordPress Widget loop – picking out only one

  • # January 14, 2009 at 12:08 pm

    Hey everyone,

    in my recent site, woskf I have wordpress and it is (currently) themed the way I want it.

    However, in the navigation of the site, there is a id="selected" that highlights what page you are on in the site.

    in the wordpress part I would like to highlight the link of the page that a user is one, e.g. mainly the permalink.

    e.g. http://www.woskf.co.uk/blog/ should not highlight the permalink as I am having 5 most recent showing in this post, but the permalink to show only that post I would like to highlight that sidebar link. (I hope this makes sense)

    so for example, http://www.woskf.co.uk/blog/2009/01/13/ … nships/18/ should highlight the sidebar link for this.

    now the problem I have is that I have widgets enabled and I see that the sidebar links are populated with a loop.

    is there a way in which I can add extra code so that when the permalink is clicked and the full page selected I can highlight only that permalink in the sidebar?

    edit: i asked at wordpress but so far no reply

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".