title: Highlight current page in menu
body: <p>I would like to highlight the current page in the sidebar menu. I am using the foll. jquery script to do this. When I test the jquery script in the console window in firebug, it works. </p>
  
  <p>When I upload the script to the website <a href="http://depts.washington.edu/uwbg/gardens/horticulture.php" rel="nofollow noreferrer">http://depts.washington.edu/uwbg/gardens/horticulture.php</a>, it does not highlight the current page (except for a couple of pages). I've looked at similar postings on this forum, but could not figure out a solution that worked for my site. Any help appreciated. Thanks.</p>
  
  <pre><code>$(document).ready( function () {
  var path = location.pathname;
  if ( path )
   $('#section_navigation ul li a[href$="' + path + '"]').attr('class', 'current');
   }); 
  </code></pre>