Archived topic
How to change the default H2 tag widget to H3 tags
3 replies · Started by phan cong tai on February 1, 2020
Viewing posts 1–4 of 4
How to change the default H2 tag widget to H3 tags?
Hi there,
add this PHP snippet:
add_filter( 'generate_start_widget_title', 'tu_adjust_widget_title' );
function tu_adjust_widget_title() {
return '<h3 class="widget-title">';
}
add_filter( 'generate_end_widget_title', 'tu_adjust_widget_title_end' );
function tu_adjust_widget_title_end() {
return '</h3>';
}
good. thank David so much!
You're welcome
This archived topic is closed to new replies.