Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter carl12

    (@carl12)

    Thank you for your help. The problem seemed to be in the child theme functions.php file. When the function below was removed the problem went away:

    //From https://hirejordansmith.com/how-to-move-woocommerce-single-product-variation-description-to-product-description-tab/

    // Move Variation Description to Product Description Tab

    add_action( 'wp_footer', 'ec_child_modify_wc_variation_desc_position' );

    function ec_child_modify_wc_variation_desc_position() { ?>

     <script>

     (function($) {

     $(document).on( 'found_variation', function() {

     var desc = $( '.woocommerce-variation.single_variation' ).find( '.woocommerce-variation-description' ).html();

     var $entry_summary = $( '#tab-description' ), $wc_var_desc = $entry_summary.find( '.woocommerce-variation-description' );

     if ( $wc_var_desc.length == 0 ) {

     $entry_summary.append( '<div class="woocommerce-variation-description"></div>' );

     }

     $entry_summary.find( '.woocommerce-variation-description' ).html( desc );

     });

     })( jQuery );

     </script>

     <style>

     form.variations_form .woocommerce-variation-description {

     display: none;

     }

     </style>
Viewing 1 replies (of 1 total)