[Resolved] Replace H2 Widget Title

Home Forums Support [Resolved] Replace H2 Widget Title

Home Forums Support Replace H2 Widget Title

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1029631
    Ariel

    Hi there, i want to replace Widget Titles from H2 to H3, H4 or nothing. Could you help me?

    Regards.

    #1029636
    Leo
    Staff
    Customer Support

    Hi there,

    This should help:
    https://generatepress.com/forums/topic/footer-widget-heading-h2/#post-474609

    Let me know πŸ™‚

    #1030189
    Ariel

    Thanks! I have fixed!

    #1030486
    Leo
    Staff
    Customer Support

    No problem πŸ™‚

    #1140979
    Praveen

    Hey i added this code snippet – but the widgets are still h2 –

    add_filter( 'filter_name', 'generate_start_widget_title' );
    function generate_start_widget_title()
    { 
        return '<h4 class="widget-title">';
    }
    
    add_filter( 'filter_name', 'generate_end_widget_title' );
    function generate_end_widget_title()
    { 
        return '</h4>';
    }

    https://welderpick.com/6013-vs-7018-welding-electrodes-compared/

    Can you please help!

    #1140982
    Praveen

    I have also tried this one –> did not work either.

    add_filter( 'generate_start_widget_title', 'db_start_widget_title' );
    function db_start_widget_title()
    { 
        return '<p class="widget-title">';
    }
    
    add_filter( 'generate_end_widget_title', 'db_end_widget_title' );
    function db_end_widget_title()
    { 
        return '</p>';
    }
    #1140986
    Praveen

    This one worked – thank you!

    add_filter( 'generate_start_widget_title', 'tu_adjust_widget_title' );
    function tu_adjust_widget_title() {
          return '<h4 class="widget-title">';
    }
    
    add_filter( 'generate_end_widget_title', 'tu_adjust_widget_title_end' );
    function tu_adjust_widget_title_end() {
          return '</h4>';
    }
    #1141209
    David
    Staff
    Customer Support

    Glad you found the solution πŸ™‚

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.