I am blanking on how to get this to work. Basically I am just trying to go over a list of items that are nav links and compare them to the title of the page. If the title is the same as the list item, change the color. Basically highlight what page you are on. Only this highlights all the items.
var secondNav = $('.custom-post-side-list ul li a');
var title = $('.custom-post-main h1');
secondNav.each(function(index, el) {
var $this = $(this);
if(title = $this) {
$this.css('color', 'red');
}
});