Im using a wordpress theme with Woocommerce and in the theme there is no option of showing the product Category description, however I can use set of codes for it to appear, however I have no idea where to place the code in the file. for it to look good. as can’t get my head around where to paste the code so it appears above the products.
the code which needs placing is
<?php the_archive_title( '', '
' ); the_archive_description( '', '
' ); ?>
in the following code:
<?php /** * The Template for displaying product archives, including the main shop page which is a post type archive. * * Override this template by copying it to yourtheme/woocommerce/archive-product.php * * @author WooThemes * @package WooCommerce/Templates * @version 2.0.0 */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly $sidebar_product = furnicom_options() -> getCpanelValue('sidebar_product'); ?> <?php get_template_part('header'); ?> <?php furnicom_breadcrumb_title() ?>
<?php if ( is_active_sidebar_Furnicom('left-product') && $sidebar_product == 'left' ):
$left_span_class = 'col-lg-'.furnicom_options()->getCpanelValue('sidebar_left_expand');
$left_span_class .= ' col-md-'.furnicom_options()->getCpanelValue('sidebar_left_expand_md');
$left_span_class .= ' col-sm-'.furnicom_options()->getCpanelValue('sidebar_left_expand_sm');
?>
<?php endif; ?>
role="main">
<?php
/**
* woocommerce_before_main_content hook
*
* @hooked woocommerce_output_content_wrapper - 10 (outputs opening divs for the content)
* @hooked woocommerce_breadcrumb - 20
*/
global $post;
do_action('woocommerce_before_main_content');
?>
<?php if ( apply_filters( 'woocommerce_show_page_title', true ) ) : ?>
<?php endif; ?>
<?php if ( is_active_sidebar_Furnicom('right-product') && $sidebar_product == 'right' ):
$right_span_class = 'col-lg-'.furnicom_options()->getCpanelValue('sidebar_right_expand');
$right_span_class .= ' col-md-'.furnicom_options()->getCpanelValue('sidebar_right_expand_md');
$right_span_class .= ' col-sm-'.furnicom_options()->getCpanelValue('sidebar_right_expand_sm');
?>
<?php endif; ?>
<?php if ( is_active_sidebar_Furnicom('sidebar-top-cat') ):?>
<div class="sidebar-top-cat clearfix">
<?php dynamic_sidebar('sidebar-top-cat'); ?>
</div>
<?php endif; ?>
<?php if ( have_posts() ) : ?>
<?php do_action('woocommerce_message'); ?>
<ul class="product-categories-listing">
<?php
if( sw_woocommerce_version_check( '3.3' ) ){
echo apply_filters( 'furnicom_custom_category', $html = '' );
}else{
woocommerce_product_subcategories();
}
?>
</ul>
<?php
/**
* woocommerce_before_shop_loop hook
*
* @hooked woocommerce_result_count - 20
* @hooked woocommerce_catalog_ordering - 30
*/
do_action( 'woocommerce_before_shop_loop' );
?>
<?php woocommerce_product_loop_start(); ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php wc_get_template_part( 'content', 'product' ); ?>
<?php endwhile; // end of the loop. ?>
<?php woocommerce_product_loop_end(); ?>
<div class="clear"></div>
<?php
/**
* woocommerce_after_shop_loop hook
*
* @hooked woocommerce_pagination - 10
*/
do_action( 'woocommerce_after_shop_loop' );
?>
<?php elseif ( ! woocommerce_product_subcategories( array( 'before' => woocommerce_product_loop_start( false ), 'after' => woocommerce_product_loop_end( false ) ) ) ) : ?>
<?php woocommerce_get_template( 'loop/no-products-found.php' ); ?>
<?php endif; ?>
</div>
<?php
/**
* woocommerce_after_main_content hook
*
* @hooked woocommerce_output_content_wrapper_end - 10 (outputs closing divs for the content)
*/
do_action('woocommerce_after_main_content');
?>
can some please help me with this. I just want the code to appear just below or above the filter on the page.
the weblink is: https://sjdreambeds.co.uk/product-category/beds/sleigh-beds/
thanks
Shakil