jQuery to add classes to navigation links in Thesis


/ Published in: jQuery
Save to your folder(s)



Copy this code and paste it in your HTML
  1. function nav_jquery_functions() { ?>
  2. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>
  3. <script>
  4. $(function(){
  5. $("ul#tabs li:contains('About')").addClass("about");
  6. });
  7. </script>
  8. <?php
  9. }
  10. add_action ('wp_head', 'nav_jquery_functions', '99');

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.