Home › Forums › Support › Make Widget Titles and/or instead of Headings This topic has 5 replies, 2 voices, and was last updated 4 years, 8 months ago by Tom. Viewing 6 posts - 1 through 6 (of 6 total) Author Posts July 19, 2019 at 2:03 am #961748 culpable Hiya, When I add a <Title> to widgets on the home page (as shown here), I notice they are added as <h2>’s. Is there any way that I can change this to make the <h2> a <p>, <span>, or otherwise? I’d rather use <h2>’s (and other <h> tags) to denote the post structure, rather than being used as widget titles. Thank you very much for your help π July 19, 2019 at 9:49 am #962124 TomLead Developer Lead Developer Hi there, You should be able to change this using the Title Element option in your WP Show Posts options. It should be in the “Content” tab. Let me know π July 19, 2019 at 9:33 pm #962380 culpable Hiya Tom, That will change the headings of the Posts titles β but I mean the widget title itself. I’ve illustrated this in the images here: https://imgur.com/a/sXUUa28 π July 20, 2019 at 7:11 am #962597 TomLead Developer Lead Developer Ah, this should help: https://generatepress.com/forums/topic/changing-sidebar-h-tags/page/2/#post-711983 Let me know π July 20, 2019 at 6:29 pm #963040 culpable Ah, wonderful. Since I wanted a <span> instead of a <h4> I used this code: add_filter( 'generate_start_widget_title', function() { return '<span class="widget-title">'; } ); add_filter( 'generate_end_widget_title', function() { return '</span>'; } ); Thank you very much for your help Tom! π July 20, 2019 at 7:46 pm #963072 TomLead Developer Lead Developer You’re welcome! π Author Posts Viewing 6 posts - 1 through 6 (of 6 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In