Created
November 25, 2019 06:08
-
-
Save Swapnildhanrale/9623b391c79c77eb2779920d12a087f4 to your computer and use it in GitHub Desktop.
Footer widget title tag change in Astra theme
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
// Footer Widget 1 | |
add_filter( 'astra_advanced_footer_widget_1_args', 'widget_title_footer_1_tag', 10, 1 ); | |
function widget_title_footer_1_tag( $atts ) { | |
$atts['before_title'] = '<h1 class="widget-title">'; | |
$atts['after_title'] = '</h1>'; | |
return $atts; | |
} | |
// Footer Widget 2 | |
add_filter( 'astra_advanced_footer_widget_2_args', 'widget_title_footer_2_tag', 10, 1 ); | |
function widget_title_footer_2_tag( $atts ) { | |
$atts['before_title'] = '<h3 class="widget-title">'; | |
$atts['after_title'] = '</h3>'; | |
return $atts; | |
} | |
// Footer Widget 3 | |
add_filter( 'astra_advanced_footer_widget_3_args', 'widget_title_footer_3_tag', 10, 1 ); | |
function widget_title_footer_3_tag( $atts ) { | |
$atts['before_title'] = '<h4 class="widget-title">'; | |
$atts['after_title'] = '</h4>'; | |
return $atts; | |
} | |
// Footer Widget 4 | |
add_filter( 'astra_advanced_footer_widget_4_args', 'widget_title_footer_4_tag', 10, 1 ); | |
function widget_title_footer_4_tag( $atts ) { | |
$atts['before_title'] = '<p class="widget-title">'; | |
$atts['after_title'] = '</p>'; | |
return $atts; | |
} | |
// Footer Widget 5 | |
add_filter( 'astra_advanced_footer_widget_5_args', 'widget_title_footer_5_tag', 10, 1 ); | |
function widget_title_footer_5_tag( $atts ) { | |
$atts['before_title'] = '<div class="widget-title">'; | |
$atts['after_title'] = '</div>'; | |
return $atts; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment