Support » Plugin: ALO EasyMail Newsletter » Change Widget title tag

  • 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 1 replies (of 1 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 5 days ago by eventualo.
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.