Bootstrap menu mark current section parent dropdown as active
// Marcar seccion principal $(".active a[href*='" + location.pathname + "']").closest('.dropdown').addClass('active');