Archived topic
Changing h2 to div footer widget
3 replies · Started by Els on November 21, 2018
Viewing posts 1–4 of 4
Hi, i've added the following code in an hook Element:
add_filter( 'generate_start_widget_title', 'generate_start_widget_title_wp' );
function generate_start_widget_title_wp() { return '<div class="widget-title">'; }
add_filter( 'generate_end_widget_title', 'generate_end_widget_title_wp' );
function generate_end_widget_title_wp() { return '</div>'; }
Unfortunately, it doesn't work. How can i get this to work?
Thanks!
Hi there,
you need to add Filters to the function.php file in your child theme or use the code snippets plugin. This article covers that:
Thanks!
Glad to be of help.
This archived topic is closed to new replies.