Go to ../themes/goodstore/ and open file loop-products.php.
Add this code on line 6
$cat = array();
if (is_product_category()) {
$cat = get_term_by('slug', get_query_var('term'), 'product_cat');
}else if(is_product_tag()) {
$cat = get_term_by('slug', get_query_var('term'), 'product_tag');
}
if (function_exists('is_product') && !is_product()) {
if (have_posts()) {
?><div class="<?php echo implode(' ', $content_width); ?> builder-section">
<?php
$col = jwLayout::parseColWidth();
?>
<div class="row">
<div class="col-lg-<?php echo $col; ?>">
<?php
if (isset($cat->name)) {
$name = $cat->name;
} else {
$name = woocommerce_page_title(false);
}
jaw_template_set_var('bar_type', jwOpt::get_option('woo_bar_type', 'big'));
jaw_template_set_var('box_title', $name);
echo jaw_get_template_part('section_bar', 'simple-shortcodes');
?></div>
</div><?php
}
}
Then remove line of code from 58 to 77
Leave a Reply
You must be logged in to post a comment.