[Resolved] H2 heading tags in recent posts issue

Home Forums Support [Resolved] H2 heading tags in recent posts issue

Home Forums Support H2 heading tags in recent posts issue

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1260783
    Dalibor

    I’d like to change “Recent posts” heading from H2 to let’s say H4 (for SEO purposes).
    What is the best way to accomplish that?
    I have GP Premium and I really like it so far.

    Regards,
    Dalibor

    #1261383
    David
    Staff
    Customer Support

    Hi there,

    try this PHP snippet:

    add_filter( 'generate_start_widget_title','generate_remove_widget_title_h3' );
    function generate_remove_widget_title_h3()
    {
          return '<h3 class="widget-title">';
    }
    
    add_filter( 'generate_end_widget_title','generate_remove_widget_title_end_h3' );
    function generate_remove_widget_title_end_h3()
    {
          return '</h3>';
    }
    #1261635
    Dalibor

    It worked, thank you on a quick fix.

    #1262541
    David
    Staff
    Customer Support

    Glad to be of help

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