Below is the code to change widget titles HTML markup in Genesis Framework.
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
<?php | |
//* 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; | |
} |