Skip to content

Instantly share code, notes, and snippets.

@cipriantepes
Created November 26, 2019 09:12
Show Gist options
  • Save cipriantepes/1d7e8e2d834d481478592774b45d4258 to your computer and use it in GitHub Desktop.
Save cipriantepes/1d7e8e2d834d481478592774b45d4258 to your computer and use it in GitHub Desktop.
Change widget title tag in genesis
// original source - https://wpsites.net/web-design/change-genesis-widget-title-html-tag-from-h4/
add_filter( 'genesis_register_widget_area_defaults', __NAMESPACE__ . '\change_all_widget_titles_to_p' );
function change_all_widget_titles_to_p( $defaults ) {
$defaults['before_title'] = '<p class="widget-title widgettitle">';
$defaults['after_title'] = "</p>\n";
return $defaults;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment