Support » Plugins and Hacks » [Resolved] [Plugin: Query Wrangler] current class

[Resolved] [Plugin: Query Wrangler] current class

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jonathan Daggerhart


    Hmm… Off the top of my head, I can think of an easy way to do it with jQuery.

      jQuery('.query-[query_slug]-wrapper a.query-field-link').each(function(i,element){
        if (jQuery(element).attr('href') == window.location.href){

    This should be very close to what you would need to do that. You would need to change [query_slug] and ‘my_custom_class’ to the correct values for your site.

    This should be simple enough for QW to do, so I will add a class to a link if it is the ‘current page being viewed’ in the next major release (1.6).

    Hope this helps.

    thanks, I’ll try this one.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] [Plugin: Query Wrangler] current class’ is closed to new replies.