Last active
June 13, 2018 03:34
-
-
Save srikat/4b7309062065ff3edda7 to your computer and use it in GitHub Desktop.
How to change Widget Titles Markup in Genesis. https://sridharkatakam.com/how-to-change-widget-titles-markup-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
// Replace h3 with h4 for all widget titles | |
add_filter( 'genesis_register_sidebar_defaults', 'custom_register_sidebar_defaults' ); | |
function custom_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