Created
November 26, 2019 09:12
-
-
Save cipriantepes/1d7e8e2d834d481478592774b45d4258 to your computer and use it in GitHub Desktop.
Change widget title tag in genesis
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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