Last active
February 19, 2017 17:44
-
-
Save hellofromtonya/f806f78aaf993651cc233c3882afeeb7 to your computer and use it in GitHub Desktop.
Agency Pro - Change the default Widget Title HTML tag from <h4> to <h2>
This file contains hidden or 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
| add_filter( 'genesis_register_widget_area_defaults', 'agency_pro_change_widget_title_to_h2', 99 ); | |
| /** | |
| * Change the Widget Title HTML tag element from a <h4> to <h2>. | |
| * | |
| * @since 1.0.0 | |
| * | |
| * @param array $defaults Array of default parameters | |
| * | |
| * @return array | |
| */ | |
| function agency_pro_change_widget_title_to_h2( array $defaults ) { | |
| $defaults['before_title'] = '<h2 class="widget-title widgettitle">'; | |
| $defaults['after_title'] = "</h2>\n"; | |
| return $defaults; | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Instructions: