I currently use Cufon accross our site with something similar to Cufon.set(\'fontFamily\', \'DIN Medium\').replace(\'h1\');
Now for a single H1 tag i would like
Using jQuery: Use the css class to h1 and specify in the selector...
$('h1.noCufon').each(function(){
var cufonText = '';
$('cufontext',$(this)).each(function(){
cufonText+=$(this).html();
});
if(cufonText!=''){
$(this).html(cufonText);
}
})
function remove_cufon(selector) {
$(selector).html( cufon_text(selector) );
return true;
}
function cufon_text(selector) {
var g = '';
$(selector +' cufon cufontext').each(function() {
g = g + $(this).html();
});
return $.trim(g);
}
Usage:
remove_cufon('#name');
by single h1 you mean?
$('h1').each(function(){
if($(this).siblings('h1').length)
Cufon.set('fontFamily', 'DIN Medium').replace(this);
});
Depending on which selector engine you use, you can:
Cufon.replace('h1:not(.clean)');