This might be a question for a paid Dev support, but I figure I would start here.
Is there a way to overwrite this block of code from the class-theme.php via a child theme to expand this elseif to an array that includes custom post types? I am trying to get the existing post template, including the Header/Hero to apply to a custom post type in the listinghive theme.
} elseif ( is_singular( 'post' ) ) {
// Add classes.
$classes = array_merge(
$classes,
[
'post',
'post--single',
]
);
// Render part.
$output .= hivetheme()->template->render_part( 'templates/post/single/post-header' );
e.g.
} elseif ( is_singular(array( 'post' ,'cpt1','cpt2') ) {
Thanks