Search for: Log In Free Support [Support request] Changing Sidebar Widget Title From H2 to H6 Home › Forums › Support › Changing Sidebar Widget Title From H2 to H6 This topic has 3 replies, 2 voices, and was last updated 7 months, 2 weeks ago by David. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts June 10, 2020 at 3:15 am #1321810 John Hello, I was wondering which template file I need to edit to change the default “widget-title” on the sidebars to H6 instead of an h2? Any help you can provide would be appreciated – thanks! June 10, 2020 at 3:39 am #1321836 DavidStaff Customer Support Hi there, you can use these two filter hooks to change them: https://docs.generatepress.com/article/generate_start_widget_title/ https://docs.generatepress.com/article/generate_end_widget_title/ your code would be something like this: add_filter( 'generate_start_widget_title', 'widget_title_start_tag' ); function widget_title_start_tag() { return '<h6 class="widget-title">'; } add_filter( 'generate_end_widget_title', 'widget_title_end_tag' ); function widget_title_end_tag() { return '</h6>'; } Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ June 10, 2020 at 3:54 am #1321848 John Worked great thank you David!! June 10, 2020 at 4:11 am #1321864 DavidStaff Customer Support You’re welcome Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In