The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

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. 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, … 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.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed