Here is an example of how your jQuery script (in wp-content/themes/your-theme/js/your-scrript.js) might look: jQuery(document).ready(function($) { $('#nav a').last().addClass('last'); })