<script> jQuery(document).ready(function($) { $('h2').each(function(i, el) { if (i === 0) { $( "h2" ).first().replaceWith('<h1>'+$(this).html()+'</h1>'); } }); }); </script> #jQuery