Skip to content

Instantly share code, notes, and snippets.

@paulgibbs
Created March 26, 2013 16:37
Show Gist options
  • Select an option

  • Save paulgibbs/5246907 to your computer and use it in GitHub Desktop.

Select an option

Save paulgibbs/5246907 to your computer and use it in GitHub Desktop.
jQuery('h1.widget-title').each(function(i) {
var new_heading = jQuery('<h3></h3>').append(jQuery(this).contents());
new_heading.attr('id', jQuery(this).attr('id'));
new_heading.attr('class', jQuery(this).attr('class'));
jQuery(this).replaceWith(new_heading);
})
jQuery('body.home #content h1.entry-title').each(function(i) {
var new_heading = jQuery('<h2></h2>').append(jQuery(this).contents());
new_heading.attr('id', jQuery(this).attr('id'));
new_heading.attr('class', jQuery(this).attr('class'));
jQuery(this).replaceWith(new_heading);
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment