• Resolved panbagnat

    (@panbagnat)


    Hello.

    How can I change the this H2 in H4?
    <h2 class=”widgettitle”>Lettre d’information</h2>

    Thanks.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author eventualo

    (@eventualo)

    Hi, I think you have to add a filter inside your theme functions.php.
    Something like:

    
    function my_custom_widget_title_tag( $params ) {
    
        $params[0]['before_title'] = '<h4 class="widget-title widgettitle">' ;
    
        $params[0]['after_title']  = '</h4>' ;
    
        return $params;
    
    }
    add_filter( 'dynamic_sidebar_params' , 'my_custom_widget_title_tag' );
    

    In this way you change the tag of all widgets, otherwise inside that function you can check $params['widget_id] or $params['widget_name] and edit the tags only if the widget is EasyMail.

    • This reply was modified 6 years, 4 months ago by eventualo.
    Thread Starter panbagnat

    (@panbagnat)

    Thank you for the answer, but it don’t works as expected. I’ve deleted the widget title and insert it like a simple text.

    And thank you for this great plugin.

    Plugin Author eventualo

    (@eventualo)

    Ok, thanks to you.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Change Widget title tag’ is closed to new replies.