Home Forums WoodMart support forum Row Background Problem Reply To: Row Background Problem

#25134

Artem Temos
Keymaster

Try to add the following code snippet to the functions.php file in the child theme to fix this issue

function woocommerce_product_archive_description() {
        // Don't display the description on search results page.
        if ( is_search() ) {
            return;
        }

        if ( is_post_type_archive( 'product' ) && 0 === absint( get_query_var( 'paged' ) ) ) {
            $shop_page = get_post( wc_get_page_id( 'shop' ) );
            if ( $shop_page ) {
                $description = wc_format_content( $shop_page->post_content );
                $shop_page_css = get_post_meta( $shop_page->ID, '_wpb_shortcodes_custom_css', true );
                if ( $description ) {
                    echo '<div class="page-description">' . $description . '</div>'; // WPCS: XSS ok.
                    if ( ! empty( $shop_page_css ) ){
                        ?>
                            <style type="text/css" data-type="vc_shortcodes-custom-css">
                                <?php echo $shop_page_css; ?>
                            </style>
                        <?php
                    }
                }
            }
        }
    }