Filter jaw_get_template_part
GDN version 2.1+ This filter is used in every template. You can change HTML output. function my_get_template_part( $html, $tmpl_name, $dir){ $html = ""; if($tmpl_name == "related-post" && $dir == "blog"){ jaw_template_set_var('box_title', esc_html__('Related Posts', "gdn-theme")); echo jaw_get_template_part('section_bar', 'simple-shortcodes'); $html .= '<div class="jaw-blog-wraper">'; $html .= "And now for some completely different"; $html .= '</div>'; } return $html;