Hi,
I need help with change of Widgets H2 headings to H3, but I want to change to H3 only on homepage, categories, archives and tags pages. On single Pages and Posts leave H2.
I tried to use this following code to change it only on categories, but without success. It breaks all widget headings on all pages.
add_filter( ‘generate_start_widget_title’,’generate_widget_title_h3′ );
function generate_widget_title_h3()
{
if ( is_category() )
return ‘<h3 class=”widget-title”>’;
}
add_filter( ‘generate_end_widget_title’,’generate_widget_title_end_h3′ );
function generate_widget_title_end_h3()
{
if ( is_category() )
return ‘</h3>’;
}
Could you please help with that.
Jiri