Home › Forums › JavaScript › Magic Line in WordPress with pages not in the menu › Re: Magic Line in WordPress with pages not in the menu
May 8, 2011 at 8:46 am
#77198
Damion
Member
Try adding this code just below the ‘$(function() {‘
if ( $('.current_page_item').length() < 0 ) {
$('#menu-main li:first').addClass('current_page_item');
}
Hope this helps,
Damion.