I use some jQuery code to modify style of an H1 element like this:
jQuery(window).on('load', function() {
$('h1').css('text-transform', 'lowercase');
});
but I want to exclude some element with a precise class of that, so I try to change my code this way, with no results:
jQuery(window).on('load', function() {
//Changer la casse des titres H1 qui sont en Majuscules
if ($('h1').hasClass('.vdl_titre')) {
$('h1').css('text-transform', 'inherit');
} else {
$('h1').css('text-transform', 'lowercase');
}
});
So help is needed :) thanks