• Hi
    Can anybody help – woocommerce has the hook to add the archive descriptions using this function

    if ( ! function_exists( 'woocommerce_taxonomy_archive_description' ) ) {
    
       /**
        * Show an archive description on taxonomy archives
        *
        * @access public
        * @subpackage Archives
        * @return void
        */
       function woocommerce_taxonomy_archive_description() {
          if ( is_tax( array( 'product_cat', 'product_tag' ) ) && get_query_var( 'paged' ) == 0 ) {
             $description = term_description();
             if ( $description ) {
                echo '<div class="term-description">' . wpautop( wptexturize( $description ) ) . '</div>';
             }
          }
       }
    }
    if ( ! function_exists( 'woocommerce_product_archive_description' ) ) {

    but nn allowance for an image – can any body help with that?

    The text is currently added via the category description in the woocommerce product categories – is there now a way to make it that html code will display i.e. so we can add the html code of the image in the category description box in the admin area?

    or it does allow for a category thumbnail to be added also- can this be adapted to display a larger image?

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘adding image to woocommerce archive descriptions’ is closed to new replies.