Hello There,
Thanks for writing in!
1.) This is because you are using a custom template in your child theme that is already deprecated. Please relocate your _topbar.php to wp-content/themes/x-child/framework/legacy/cranium/headers/views/global/ folder. You will have to create the folder path since it does not exist in your child theme.
And another thing I noticed is that you are using this in wp_index.php
<?php
// =============================================================================
// VIEWS/RENEW/WP-INDEX.PHP
// -----------------------------------------------------------------------------
// Index page output for RENEW.
// =============================================================================
$is_filterable_index = is_home() && x_get_option( 'x_renew_filterable_index_enable' ) == '1';
?>
<?php get_header(); ?>
<div class="x-container max width main">
<?php //x_get_view( 'renew', '_post', 'slidere' ); ?>
<?php echo do_shortcode('[rev_slider alias="church-home"]'); ?>
<div class="offset cf">
<div class="<?php x_main_content_class(); ?>" role="main">
<?php if ( $is_filterable_index ) : ?>
<?php x_get_view( 'renew', '_index' ); ?>
<?php else : ?>
<?php x_get_view( 'global', '_index' ); ?>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
</div>
</div>
<?php get_footer(); ?>
You are trying to display <?php x_get_view( 'renew', '_index' ); ?> and there is no _index.php file in your child theme’s wp-content/themes/x-child/framework/views/renew/
2.) You search results does not include products because you have added this php code in your child theme’s functions.php file:
// add custom types to archive
function search_add_custom_types( $query ) {
if( is_search() && ! is_admin() ) {
$query->set( 'post_type', array(
'post', 'essential_grid'
));
return $query;
}
}
add_filter( 'pre_get_posts', 'search_add_custom_types' );
Please remove this code block so that the product search will give you correct search results.