/change-widget-titles-markup.php Secret
Last active
November 6, 2015 02:10
Star
You must be signed in to star a gist
Change widget titles HTML markup in Genesis Framework. Source: 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
<?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; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment