Skip to content

Instantly share code, notes, and snippets.

Last active November 6, 2015 02:10
What would you like to do?
Change widget titles HTML markup in Genesis Framework. Source:
//* Replace <h3> with <h4> HTML tags for all widget titles in Genesis
add_filter('genesis_register_sidebar_defaults', 'prefix_register_sidebar_defaults');
function prefix_register_sidebar_defaults($defaults) {
$defaults['before_title'] = '<h4 class="widget-title widgettitle">';
$defaults['after_title'] = '</h4>';
return $defaults;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment